/* Responsive Design */

/* Carousel responsive styles */
@media (max-width: 768px) {
    .carousel-indicators {
        right: 20px;
        gap: 10px;
    }

    .carousel-indicator {
        width: 10px;
        height: 10px;
    }

    .carousel-indicator.active {
        height: 24px;
    }
}

@media (max-width: 576px) {
    .carousel-indicators {
        right: 15px;
        gap: 8px;
    }

    .carousel-indicator {
        width: 8px;
        height: 8px;
    }

    .carousel-indicator.active {
        height: 20px;
    }
}

/* Large Desktop (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }

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

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

/* Desktop (992px to 1199px) */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
    }

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

    .about-content {
        gap: 3rem;
    }

    .contact-content {
        gap: 3rem;
    }
}

/* Tablet (768px to 991px) */
@media (max-width: 991px) {
    .container {
        max-width: 720px;
    }

    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: rgba(26, 31, 46, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    }

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

    .nav-list {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .nav-link {
        font-size: 1.125rem;
        padding: 0.5rem 1rem;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    /* Hero Section */
    .hero .container {
        min-height: calc(100vh - 80px);
        padding: 3rem 0;
    }

    .hero-title-line-1,
    .hero-title-line-2 {
        font-size: 2.5rem;
    }

    .hero-subtitle-line-1,
    .hero-subtitle-line-2,
    .hero-subtitle-alt-line-1,
    .hero-subtitle-alt-line-2 {
        font-size: 1.125rem;
    }

    .hero-featured-card {
        padding: 2.5rem 2rem;
    }

    .featured-card-title {
        font-size: 2rem;
    }

    .featured-card-subtitle {
        font-size: 1rem;
    }

    /* About Section */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .about-features {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    /* Services Section */
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    /* Products Section */
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    /* Contact Section */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    /* Product Showcase */
    .product-showcase-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Achievement Stats */
    .achievement-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    /* Application Scenarios */
    .scenarios-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Mobile Large (576px to 767px) */
@media (max-width: 767px) {
    .container {
        padding: 0 15px;
    }

    /* Typography */
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    /* Header */
    .header {
        padding: 0;
    }

    .navbar {
        padding: 0.75rem 0;
    }

    .brand-text {
        font-size: 1rem;
    }

    .logo {
        height: 40px;
    }

    /* Main Content */
    .main {
        margin-top: 0;
    }

    /* Sections */
    section {
        padding: 4rem 0;
    }

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

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

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

    /* Hero Section */
    .hero {
        padding: 3rem 0;
    }

    .hero-bg-image {
        opacity: 0.35;
        animation-duration: 20s;
    }

    .hero-bg-overlay {
        background: linear-gradient(135deg, rgba(10, 14, 26, 0.9) 0%, rgba(26, 31, 46, 0.85) 50%, rgba(15, 23, 42, 0.9) 100%);
    }

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

    .hero-subtitle-line-1,
    .hero-subtitle-line-2,
    .hero-subtitle-alt-line-1,
    .hero-subtitle-alt-line-2 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .hero-featured-card {
        padding: 2rem 1.5rem;
    }

    .featured-card-title {
        font-size: 1.75rem;
    }

    .featured-card-subtitle {
        font-size: 0.95rem;
    }

    .featured-card-link {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }

    /* About Section */
    .about-features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .feature-item {
        padding: 1rem;
    }

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

    /* Services Section */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .service-icon {
        font-size: 2.5rem;
    }

    /* Products Section */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .product-image {
        height: 180px;
    }

    .product-content {
        padding: 1rem;
    }

    /* Product Showcase */
    .product-showcase {
        padding: 3rem 0;
    }

    .product-showcase-card {
        padding: 2rem 1.5rem;
    }

    .product-showcase-title {
        font-size: 1.5rem;
    }

    /* Achievement Stats */
    .achievement-stats {
        padding: 3rem 0;
    }

    .achievement-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .achievement-stat-number {
        font-size: 2.5rem;
    }

    /* Application Scenarios */
    .application-scenarios {
        padding: 3rem 0;
    }

    .scenario-card {
        padding: 2rem 1.5rem;
    }

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

    .scenario-desc {
        font-size: 1rem;
    }

    /* Contact Section */
    .contact-item {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
    }

    .contact-icon {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

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

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

    .footer-brand {
        justify-content: center;
    }

    .footer-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .footer-links li {
        margin-bottom: 0;
    }
}

/* Mobile Small (up to 575px) */
@media (max-width: 575px) {
    .container {
        padding: 0 10px;
    }

    /* Typography */
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    /* Header */
    .navbar {
        padding: 0.5rem 0;
    }

    .brand-text {
        font-size: 0.9rem;
    }

    .logo {
        height: 35px;
    }

    .language-select {
        padding: 6px 8px;
        font-size: 0.8rem;
    }

    /* Main Content */
    .main {
        margin-top: 0;
    }

    /* Sections */
    section {
        padding: 3rem 0;
    }

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

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

    /* Hero Section */
    .hero {
        padding: 2rem 0;
    }

    .hero-title-line-1,
    .hero-title-line-2 {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }

    .hero-subtitle-line-1,
    .hero-subtitle-line-2,
    .hero-subtitle-alt-line-1,
    .hero-subtitle-alt-line-2 {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .hero-featured-card {
        padding: 1.5rem 1.25rem;
    }

    .featured-card-title {
        font-size: 1.5rem;
    }

    .featured-card-subtitle {
        font-size: 0.875rem;
        margin-bottom: 1.5rem;
    }

    .featured-card-link {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }

    /* About Section */
    .about-text p {
        font-size: 1rem;
    }

    .feature-item {
        padding: 0.75rem;
    }

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

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

    .feature-item p {
        font-size: 0.8rem;
    }

    /* Services Section */
    .service-card {
        padding: 1rem;
    }

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

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

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

    /* Products Section */
    .product-image {
        height: 150px;
    }

    .product-content {
        padding: 0.75rem;
    }

    .product-content h3 {
        font-size: 1rem;
    }

    .product-content p {
        font-size: 0.8rem;
    }

    /* Product Showcase */
    .product-showcase-card {
        padding: 1.5rem 1rem;
    }

    .product-showcase-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1.5rem;
    }

    .product-showcase-title {
        font-size: 1.25rem;
    }

    .product-showcase-desc {
        font-size: 0.9rem;
    }

    /* Achievement Stats */
    .achievement-title {
        font-size: 2rem;
    }

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

    .achievement-stat-item {
        padding: 1.5rem 1rem;
    }

    .achievement-stat-number {
        font-size: 2rem;
    }

    .achievement-stat-label {
        font-size: 1rem;
    }

    /* Application Scenarios */
    .scenario-card {
        padding: 1.5rem 1rem;
    }

    .scenario-number {
        top: 1rem;
        right: 1rem;
        font-size: 3rem;
    }

    .scenario-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 1.5rem;
    }

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

    .scenario-desc {
        font-size: 0.9rem;
    }

    /* Scroll Indicator */
    .scroll-indicator {
        bottom: 20px;
        font-size: 0.8rem;
    }

    /* Contact Section */
    .contact-item {
        padding: 0.75rem;
    }

    .contact-details h3 {
        font-size: 1rem;
    }

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

    .contact-form {
        padding: 1rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .form-group label {
        font-size: 0.9rem;
    }

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

    /* Footer */
    .footer {
        padding: 1.5rem 0 0.75rem;
    }

    .footer-content {
        gap: 1rem;
    }

    .footer-section h3 {
        font-size: 1rem;
    }

    .footer-brand-text {
        font-size: 1rem;
    }

    .footer-description {
        font-size: 0.9rem;
    }

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

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

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

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

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

    section {
        padding: 2rem 0;
    }

    .main {
        margin-top: 60px;
    }
}

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

/* Print Styles */
@media print {
    .header,
    .footer,
    .btn,
    .mobile-menu-toggle,
    .language-selector {
        display: none !important;
    }

    .main {
        margin-top: 0;
    }

    section {
        padding: 1rem 0;
        page-break-inside: avoid;
    }

    .hero {
        background: none !important;
        color: #000 !important;
    }

    .hero-title,
    .section-title {
        color: #000 !important;
    }

    .hero-subtitle,
    .section-subtitle {
        color: #333 !important;
    }

    .container {
        max-width: none;
        padding: 0;
    }
}

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

    html {
        scroll-behavior: auto;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #1a1a1a;
        --text-color: #e5e5e5;
        --card-bg: #2a2a2a;
        --border-color: #404040;
    }

    body {
        background-color: var(--bg-color);
        color: var(--text-color);
    }

    .header {
        background-color: transparent;
        border-bottom-color: rgba(255, 255, 255, 0.1);
    }

    .nav-link {
        color: var(--text-color);
    }

    .section-title {
        color: var(--text-color);
    }

    .section-subtitle {
        color: #a0a0a0;
    }

    .service-card,
    .product-card,
    .contact-form {
        background-color: var(--card-bg);
        border-color: var(--border-color);
    }

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

    .form-group label {
        background-color: var(--card-bg);
        color: #a0a0a0;
    }
}
