/* ============================================
   GJ3Algo Landing Page - Responsive Styles
   Mobile, Tablet, Desktop
   ============================================ */

/* ============= Tablet (768px and below) ============= */

@media (max-width: 768px) {
    /* Navigation */
    .nav-menu {
        gap: 0;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(5, 8, 16, 0.99);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        gap: 0;
        padding: 1rem 0;
        list-style: none;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-cta {
        margin: 1rem 0;
    }

    /* Hero Section */
    .hero-title {
        font-size: 2.5rem;
    }

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

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }

    /* Sections */
    .section-title {
        font-size: 2rem;
    }

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

    /* How It Works */
    .workflow-container {
        flex-direction: column;
        gap: 1rem;
    }

    .workflow-arrow {
        writing-mode: vertical-rl;
        text-orientation: mixed;
        margin: -1rem 0;
    }

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

    .feature-card {
        padding: 2rem;
    }

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

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

    .contact-actions {
        flex-direction: column;
    }

    .payment-grid {
        grid-template-columns: 1fr;
    }

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

    /* Spacing */
    section {
        padding: 50px 0;
    }

    .section-container {
        padding: 0 1.5rem;
    }
}

/* ============= Mobile (480px and below) ============= */

@media (max-width: 480px) {
    :root {
        --spacing-md: 1rem;
        --spacing-lg: 1.5rem;
    }

    /* Navigation */
    .nav-container {
        padding: 0 1rem;
    }

    .nav-logo {
        font-size: 1.4rem;
    }

    /* Hero Section */
    .hero {
        margin-top: 50px;
        min-height: 80vh;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

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

    .hero-buttons {
        gap: 0.5rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }

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

    /* Sections */
    section {
        padding: 40px 0;
    }

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

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

    /* Cards */
    .workflow-step,
    .feature-card,
    .info-card,
    .pricing-card,
    .faq-item {
        padding: 1.5rem;
    }

    .workflow-step h3,
    .feature-card h3 {
        font-size: 1.1rem;
    }

    .step-icon,
    .feature-icon {
        font-size: 2rem;
    }

    /* Pricing */
    .plan-header h3 {
        font-size: 1.5rem;
    }

    .plan-price {
        font-size: 1.8rem;
    }

    /* FAQ */
    .faq-question {
        padding: 1.2rem;
        font-size: 1rem;
    }

    .faq-answer {
        padding: 0 1.2rem 1.2rem 1.2rem;
        font-size: 0.95rem;
    }

    /* Forms */
    .form-group input,
    .form-group textarea {
        padding: 0.8rem;
        font-size: 1rem;
    }

    .btn-large {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .floating-whatsapp {
        right: 18px;
        bottom: 18px;
    }

    .floating-whatsapp a {
        width: 58px;
        height: 58px;
        font-size: 1.8rem;
    }

    /* Footer */
    .footer {
        padding: 2rem 0 1rem;
    }

    .footer-content {
        gap: 1.5rem;
    }

    .footer-column h4 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

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

    /* Blobs */
    .blob-1 {
        width: 300px;
        height: 300px;
        top: -100px;
        right: -150px;
    }

    .blob-2 {
        width: 250px;
        height: 250px;
        bottom: -100px;
        left: -150px;
    }
}

/* ============= Extra Small Devices (320px) ============= */

@media (max-width: 320px) {
    .hero-title {
        font-size: 1.5rem;
    }

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

    .hero-stats {
        gap: 1rem;
    }

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

    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }

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

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

/* ============= Large Screens (1200px+) ============= */

@media (min-width: 1200px) {
    .section-container {
        padding: 0 40px;
    }

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

    .workflow-container {
        gap: 3rem;
    }

    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .hero-stats {
        gap: 6rem;
    }
}

/* ============= Print Styles ============= */

@media print {
    .navbar,
    .hero-buttons,
    .demo,
    .footer {
        display: none;
    }

    body {
        background: white;
        color: #000;
    }

    .section-title,
    .section-subtitle {
        color: #000;
    }

    .feature-card,
    .pricing-card {
        border: 1px solid #ccc;
        background: white;
        color: #000;
    }
}

/* ============= Animations Helper Classes ============= */

.scroll-fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fade-in-up 0.6s ease-out forwards;
}

.scroll-fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    animation: fade-in-left 0.6s ease-out forwards;
}

.scroll-fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    animation: fade-in-right 0.6s ease-out forwards;
}

@keyframes fade-in-left {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fade-in-right {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============= Accessibility ============= */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============= Dark Mode Support ============= */

@media (prefers-color-scheme: dark) {
    /* Already dark, no changes needed */
}

@media (prefers-color-scheme: light) {
    /* Could add light theme here if needed */
}
