/* ===== RESPONSIVE DESIGN ===== */

/* Large Desktop (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
}

/* Desktop (992px to 1199px) */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
}

/* Tablet (768px to 991px) */
@media (max-width: 991px) {
    .container {
        max-width: 720px;
        padding: 0 var(--spacing-md);
    }
    
    /* Navigation */
    .nav-list {
        gap: var(--spacing-md);
    }
    
    .nav-link {
        font-size: var(--font-size-sm);
    }
    
    /* Hero Section */
    .hero-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
        text-align: center;
    }
    
    .hero-visual {
        order: -1;
        height: 300px;
    }
    
    .hero-title {
        font-size: var(--font-size-4xl);
    }
    
    .hero-description {
        font-size: var(--font-size-lg);
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .logo-image {
        width: 80px;
        height: 80px;
    }
    
    /* Features Grid */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }
    
    /* Stats Grid */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-sm);
    }
    
    /* About Page */
    .overview-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
        text-align: center;
    }
    
    .mv-grid {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Contact Page */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Mobile Large (576px to 767px) */
@media (max-width: 767px) {
    .container {
        max-width: 540px;
        padding: 0 var(--spacing-sm);
    }
    
    /* Navigation - Mobile Menu */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--white);
        box-shadow: var(--shadow-lg);
        transition: left var(--transition-normal);
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        padding: var(--spacing-xl);
        gap: var(--spacing-lg);
        height: 100%;
        justify-content: flex-start;
    }
    
    .nav-item {
        width: 100%;
    }
    
    .nav-link {
        display: block;
        padding: var(--spacing-sm);
        font-size: var(--font-size-lg);
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .nav-link.active::after {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Logo */
    .logo-text {
        font-size: var(--font-size-xl);
    }
    
    .logo-sub {
        font-size: var(--font-size-xs);
    }
    
    /* Hero Section */
    .hero {
        min-height: 80vh;
        padding: var(--spacing-xl) 0;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        text-align: center;
    }
    
    .hero-visual {
        order: -1;
        height: 250px;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-title {
        font-size: var(--font-size-3xl);
        margin-bottom: var(--spacing-sm);
        text-align: center;
    }
    
    .hero-description {
        font-size: var(--font-size-base);
        margin-bottom: var(--spacing-lg);
        text-align: center;
    }
    
    .logo-image {
        width: 60px;
        height: 60px;
    }
    
    /* Sections */
    .section-title {
        font-size: var(--font-size-3xl);
    }
    
    .section-description {
        font-size: var(--font-size-base);
    }
    
    /* Features */
    .features {
        padding: var(--spacing-2xl) 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .feature-card {
        padding: var(--spacing-lg);
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
    }
    
    .feature-icon i {
        font-size: var(--font-size-xl);
    }
    
    /* Stats */
    .stats {
        padding: var(--spacing-2xl) 0;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }
    
    .stat-number {
        font-size: var(--font-size-4xl);
    }
    
    /* CTA */
    .cta {
        padding: var(--spacing-2xl) 0;
    }
    
    .cta-title {
        font-size: var(--font-size-3xl);
    }
    
    .cta-description {
        font-size: var(--font-size-base);
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-sm);
    }
    
    /* Footer */
    .footer {
        padding: var(--spacing-2xl) 0 var(--spacing-md);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        text-align: center;
    }
    
    .footer-brand {
        max-width: 100%;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: var(--spacing-xs);
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-sm);
    }
    
    /* About Page */
    .overview-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
        text-align: center;
    }
    
    .overview-content {
        text-align: center;
    }
    
    .overview-highlights {
        justify-content: center;
        align-items: center;
    }
    
    .highlight-item {
        justify-content: center;
        text-align: center;
    }
    
    .mv-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .mv-card {
        padding: var(--spacing-lg);
    }
    
    .mv-title {
        font-size: var(--font-size-lg);
    }
    
    .mv-description {
        font-size: var(--font-size-sm);
    }
    
    .values-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .value-card {
        padding: var(--spacing-md);
        text-align: center;
    }
    
    .value-icon {
        width: 50px;
        height: 50px;
    }
    
    .value-title {
        font-size: var(--font-size-base);
    }
    
    .value-description {
        font-size: var(--font-size-xs);
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .team-member {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .member-photo {
        height: 150px;
    }
    
    .member-info {
        padding: var(--spacing-md);
    }
    
    .member-name {
        font-size: var(--font-size-lg);
    }
    
    .member-position {
        font-size: var(--font-size-sm);
    }
    
    .member-bio {
        font-size: var(--font-size-xs);
    }
    
    /* Services Page */
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .service-card {
        padding: var(--spacing-lg);
    }
    
    .service-title {
        font-size: var(--font-size-lg);
    }
    
    .service-description {
        font-size: var(--font-size-sm);
    }
    
    .service-features li {
        font-size: var(--font-size-xs);
    }
    
    .process-timeline {
        padding-left: 0;
    }
    
    .process-step {
        padding-left: 60px;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: var(--font-size-lg);
    }
    
    .step-title {
        font-size: var(--font-size-lg);
    }
    
    .step-description {
        font-size: var(--font-size-sm);
    }
    
    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
    
    .industry-card {
        padding: var(--spacing-md);
    }
    
    .industry-title {
        font-size: var(--font-size-base);
    }
    
    .industry-description {
        font-size: var(--font-size-xs);
    }
    
    /* Projects Page */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .project-card {
        margin: 0 auto;
        max-width: 400px;
    }
    
    .project-content {
        padding: var(--spacing-md);
    }
    
    .project-title {
        font-size: var(--font-size-lg);
    }
    
    .project-description {
        font-size: var(--font-size-sm);
    }
    
    .project-detail {
        font-size: var(--font-size-xs);
    }
    
    .tech-tag {
        font-size: 10px;
        padding: 2px 6px;
    }
    
    .filter-tabs {
        flex-wrap: wrap;
        gap: var(--spacing-xs);
        justify-content: center;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: var(--font-size-xs);
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .testimonial-card {
        padding: var(--spacing-md);
    }
    
    .testimonial-text {
        font-size: var(--font-size-sm);
    }
    
    .author-name {
        font-size: var(--font-size-base);
    }
    
    .author-position {
        font-size: var(--font-size-xs);
    }
    
    /* Contact Page */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    .contact-form-container {
        padding: var(--spacing-lg);
    }
    
    .form-title {
        font-size: var(--font-size-xl);
    }
    
    .form-input,
    .form-select,
    .form-textarea {
        font-size: var(--font-size-base);
        padding: 12px;
    }
    
    .contact-info-container {
        padding: var(--spacing-lg);
    }
    
    .contact-item {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        gap: var(--spacing-md);
    }
    
    .contact-icon {
        flex-shrink: 0;
        width: 40px;
        height: 40px;
    }
    
    .contact-text h4 {
        font-size: var(--font-size-sm);
        margin-bottom: var(--spacing-xs);
    }
    
    .contact-text p {
        font-size: var(--font-size-xs);
        line-height: 1.4;
    }
    
    .faq-grid {
        gap: var(--spacing-sm);
    }
    
    .faq-question {
        padding: var(--spacing-md);
    }
    
    .faq-question h3 {
        font-size: var(--font-size-base);
        line-height: 1.3;
    }
    
    .faq-answer {
        padding: 0 var(--spacing-md) var(--spacing-md);
    }
    
    .map-placeholder {
        padding: var(--spacing-lg);
    }
}

/* Mobile Small (up to 575px) */
@media (max-width: 575px) {
    .container {
        padding: 0 var(--spacing-xs);
    }
    
    /* Header */
    .navbar {
        padding: var(--spacing-xs) 0;
    }
    
    .nav-menu {
        top: 60px;
        height: calc(100vh - 60px);
    }
    
    /* Page Headers */
    .page-header {
        padding: calc(60px + var(--spacing-2xl)) 0 var(--spacing-2xl);
    }
    
    .page-title {
        font-size: var(--font-size-2xl);
    }
    
    .page-description {
        font-size: var(--font-size-sm);
    }
    
    /* Hero */
    .hero {
        min-height: 70vh;
    }
    
    .hero-visual {
        height: 200px;
    }
    
    .hero-title {
        font-size: var(--font-size-2xl);
        line-height: 1.2;
    }
    
    .hero-description {
        font-size: var(--font-size-sm);
    }
    
    .hero-buttons {
        gap: var(--spacing-sm);
    }
    
    .logo-image {
        width: 50px;
        height: 50px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: var(--font-size-sm);
    }
    
    .btn-large {
        padding: 12px 24px;
        font-size: var(--font-size-base);
    }
    
    /* Sections */
    .section-header {
        margin-bottom: var(--spacing-2xl);
    }
    
    .section-title {
        font-size: var(--font-size-2xl);
    }
    
    .section-description {
        font-size: var(--font-size-sm);
    }
    
    /* Features */
    .features {
        padding: var(--spacing-xl) 0;
    }
    
    .feature-card {
        padding: var(--spacing-md);
    }
    
    .feature-title {
        font-size: var(--font-size-lg);
    }
    
    .feature-description {
        font-size: var(--font-size-sm);
    }
    
    /* Stats */
    .stats {
        padding: var(--spacing-xl) 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .stat-number {
        font-size: var(--font-size-3xl);
    }
    
    .stat-label {
        font-size: var(--font-size-base);
    }
    
    /* CTA */
    .cta {
        padding: var(--spacing-xl) 0;
    }
    
    .cta-title {
        font-size: var(--font-size-2xl);
    }
    
    .cta-description {
        font-size: var(--font-size-sm);
    }
    
    /* Footer */
    .footer {
        padding: var(--spacing-xl) 0 var(--spacing-sm);
    }
    
    .footer-logo {
        font-size: var(--font-size-xl);
    }
    
    .footer-title {
        font-size: var(--font-size-base);
    }
    
    .footer-description,
    .contact-info p,
    .footer-links a {
        font-size: var(--font-size-sm);
    }
    
    /* Services Page */
    .industries-grid {
        grid-template-columns: 1fr;
    }
    
    /* Projects Page */
    .filter-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: var(--spacing-xs);
    }
    
    .filter-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    /* Contact Page */
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-sm);
    }
    
    .contact-icon {
        align-self: center;
    }
}

/* Extra Small Mobile (up to 375px) */
@media (max-width: 375px) {
    .hero-title {
        font-size: var(--font-size-xl);
    }
    
    .section-title {
        font-size: var(--font-size-xl);
    }
    
    .cta-title {
        font-size: var(--font-size-xl);
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
    }
    
    .feature-icon i {
        font-size: var(--font-size-lg);
    }
    
    .stat-number {
        font-size: var(--font-size-2xl);
    }
    
    .logo-image {
        width: 40px;
        height: 40px;
    }
    
    .hero-visual {
        height: 150px;
    }
    
    /* Network visualization adjustments */
    .network-node {
        width: 15px;
        height: 15px;
    }
    
    .main-node {
        width: 20px;
        height: 20px;
    }
    
    .floating-icon {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
}

/* Landscape Mobile */
@media (max-width: 767px) and (orientation: landscape) {
    .hero {
        min-height: 60vh;
    }
    
    .hero-visual {
        height: 200px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Print Styles */
@media print {
    * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    .header,
    .nav-toggle,
    .hero-buttons,
    .btn,
    .social-links,
    .hero-visual,
    .floating-elements,
    .network-visualization {
        display: none !important;
    }
    
    .hero {
        min-height: auto;
        padding: var(--spacing-lg) 0;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title,
    .section-title {
        color: black !important;
    }
    
    .footer {
        border-top: 1px solid #ccc;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000080;
        --secondary-color: #000000;
        --accent-color: #0000ff;
        --gray: #333333;
    }
    
    .btn-primary {
        border: 2px solid #000000;
    }
    
    .btn-secondary {
        border: 2px solid #000000;
        color: #000000;
    }
    
    .feature-card {
        border: 2px solid #cccccc;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .logo-image,
    .network-node,
    .floating-icon,
    .pulse-ring,
    .network-connection {
        animation: none !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --white: #1a1a1a;
        --light-gray: #2d2d2d;
        --gray: #a0a0a0;
        --secondary-color: #e5e5e5;
    }
    
    body {
        background-color: #1a1a1a;
        color: #e5e5e5;
    }
    
    .header {
        background-color: rgba(26, 26, 26, 0.95);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .feature-card {
        background-color: #2d2d2d;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu {
        background-color: #1a1a1a;
    }
}
