/* Responsive Design */

/* Tablet Styles */
@media screen and (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-container {
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }
    
    .why-content {
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
    /* Hide Chatbot on Mobile */
    .ai-chatbot-interface,
    .floating-ui-elements,
    .particle-container,
    .connection-lines {
        display: none;
    }

    /* Navigation Mobile */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--background-light);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        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 Mobile */
    .hero {
        padding: 160px 0 80px;
        min-height: auto;
        display: flex;
        align-items: flex-start;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
        width: 100%;
    }
    
    .hero-title {
        font-size: 3.5rem;
        line-height: 1.1;
        margin-bottom: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-graphic {
        width: 100%;
        height: auto;
        min-height: 200px;
    }
    
    .ai-icon {
        font-size: 3rem;
    }
    
    /* Typography Mobile */
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    /* Services Mobile */
    .services-overview {
        padding: 60px 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    /* Why Choose Us Mobile */
    .why-choose-us {
        padding: 60px 0;
    }
    
    .why-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .why-stats {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .stat-item {
        flex: 1;
        min-width: 120px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    /* CTA Mobile */
    .cta-section {
        padding: 60px 0;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    /* Footer Mobile */
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Small Mobile Styles */
@media screen and (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-graphic {
        width: 100%;
        height: auto;
        min-height: 200px;
        padding: 0 10px;
    }
    
    .ai-icon {
        font-size: 2.5rem;
    }
    
    .service-card {
        padding: 1rem;
    }
    
    .service-icon {
        font-size: 2.5rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .stat-item {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .why-stats {
        flex-direction: column;
    }
}

/* Landscape Mobile */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 130px 0 60px;
        min-height: auto;
        display: flex;
        align-items: flex-start;
    }
    
    .hero-container {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.8rem;
        line-height: 1.1;
        margin-bottom: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .hero-graphic {
        width: 100%;
        height: auto;
        min-height: 200px;
    }
    
    .ai-icon {
        font-size: 2rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .nav-toggle,
    .hero-buttons,
    .cta-section,
    .footer {
        display: none;
    }
    
    .hero {
        padding: 20px 0;
    }
    
    .services-overview,
    .why-choose-us {
        padding: 20px 0;
    }
    
    .service-card,
    .stat-item {
        box-shadow: none;
        border: 1px solid var(--border-color);
    }
    
    .hero-title,
    .section-title {
        color: var(--primary-color) !important;
    }
    
    .accent {
        color: var(--primary-color) !important;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-graphic {
        transform: scale(0.9);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .ai-icon,
    .code-line {
        animation: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --background-light: #1a1a1a;
        --background-gray: #2a2a2a;
        --text-primary: #ffffff;
        --text-secondary: #cccccc;
        --border-color: #404040;
        --shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
        --shadow-hover: 0 4px 20px rgba(255, 255, 255, 0.15);
    }
    
    .navbar {
        background-color: var(--background-light);
        border-bottom: 1px solid var(--border-color);
    }
    
    .service-card,
    .stat-item {
        background-color: var(--background-gray);
        border-color: var(--border-color);
    }
    
    .hero {
        background: linear-gradient(135deg, var(--background-light) 0%, var(--background-gray) 100%);
    }
}

/* Focus Styles for Accessibility */
.nav-link:focus,
.btn:focus,
.service-link:focus,
.social-link:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 8px;
    text-decoration: none;
    z-index: 1001;
}

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