/* Divine Tech AI Platform - Responsive Styles */

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.5);
        padding: 2rem 0;
        gap: 1rem;
    }

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

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }

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

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

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

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
        gap: 1.5rem;
    }

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

    .hero-image-container {
        height: 300px;
    }

    .floating-card {
        display: none;
    }

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

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

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

    .service-card {
        padding: 1.5rem;
    }

    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

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

    .testimonial-card {
        padding: 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

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

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

    .whatsapp-btn span {
        display: none;
    }

    .ai-preview-chat {
        height: 250px;
    }

    .message {
        gap: 8px;
    }

    .message-avatar {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .message-content {
        padding: 0.8rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .nav-container {
        padding: 0 15px;
    }

    .logo-text {
        font-size: 1.2rem;
    }

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

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

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

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

    .btn {
        padding: 14px 24px;
        font-size: 0.9rem;
    }

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

    .service-card h3 {
        font-size: 1.3rem;
    }

    .service-card p {
        font-size: 0.95rem;
    }

    .testimonial-content p {
        font-size: 1rem;
    }

    .author-info h4 {
        font-size: 1rem;
    }

    .author-info p {
        font-size: 0.85rem;
    }

    .footer-section h4 {
        font-size: 1.1rem;
    }

    .contact-info p {
        font-size: 0.9rem;
    }

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

    .ai-preview-header {
        padding: 0.8rem 1rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .ai-preview-title {
        font-size: 0.9rem;
    }

    .model-selector select {
        padding: 6px 10px;
        font-size: 0.8rem;
    }

    .ai-preview-input {
        padding: 0.8rem 1rem;
    }

    .ai-preview-input input {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .send-btn {
        padding: 10px 12px;
    }

    .whatsapp-floating {
        flex-direction: row;
        gap: 5px;
    }
}

/* Mobile Navigation Enhancements */
@media (max-width: 768px) {
    .nav-link {
        padding: 1rem 0;
        display: block;
        width: 100%;
    }

    .login-btn {
        margin: 1rem auto 0;
        width: fit-content;
    }

    .nav-menu::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(180deg, rgba(0, 212, 255, 0.1) 0%, transparent 100%);
        pointer-events: none;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .service-card:hover {
        transform: none;
    }

    .service-card:active {
        transform: scale(0.98);
    }

    .testimonial-card:hover {
        transform: none;
    }

    .testimonial-card:active {
        transform: scale(0.98);
    }

    .btn:hover {
        transform: none;
    }

    .btn:active {
        transform: scale(0.95);
    }

    .social-link:hover {
        transform: none;
    }

    .social-link:active {
        transform: scale(0.9);
    }

    .whatsapp-btn:hover {
        transform: none;
    }

    .whatsapp-btn:active {
        transform: scale(0.95);
    }
}

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

    .hero-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }

    .author-img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Landscape Mobile Optimizations */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 80px 0 40px;
    }

    .hero-content {
        gap: 1.5rem;
    }

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

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

    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .hero-buttons {
        margin-bottom: 2rem;
    }

    .hero-stats {
        gap: 1rem;
    }

    .stat h3 {
        font-size: 1.3rem;
    }

    .section-header {
        margin-bottom: 2rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .whatsapp-floating,
    .hero-bg-animation {
        display: none;
    }

    .hero {
        padding: 20px 0;
        min-height: auto;
    }

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

    body {
        background: white;
        color: black;
    }

    .gradient-text {
        -webkit-text-fill-color: initial;
        color: #0066cc;
    }
}

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

    .floating-card {
        animation: none;
    }

    .bg-circle {
        animation: none;
    }

    .whatsapp-btn {
        animation: none;
    }
}

/* Dark Mode Enhancements */
@media (prefers-color-scheme: dark) {
    :root {
        --dark-bg: #000000;
        --darker-bg: #000000;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-transparency: reduce) {
    .navbar,
    .service-card,
    .testimonial-card,
    .ai-preview-box {
        backdrop-filter: none;
        background: rgba(10, 10, 10, 0.95);
    }
}

/* Focus Indicators for Accessibility */
@media (prefers-reduced-motion: no-preference) {
    .nav-link:focus,
    .btn:focus,
    .service-card:focus,
    .testimonial-card:focus {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }
}