/* Responsive Design for no plan inc. Website */

/* Extra Large Devices (Large Desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title h1 {
        font-size: 5rem;
    }
    
    .section-title {
        font-size: 3.5rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .philosophy-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Large Devices (Desktops, 992px and up) */
@media (max-width: 1199.98px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-title h1 {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .philosophy-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .company-grid {
        gap: 3rem;
    }
}

/* Medium Devices (Tablets, 768px and up) */
@media (max-width: 991.98px) {
    .container {
        max-width: 960px;
        padding: 0 1.5rem;
    }
    
    /* Navigation */
    .nav-container {
        padding: 0 1.5rem;
    }
    
    .nav-menu {
        gap: 1.5rem;
    }
    
    /* Hero Section */
    .hero-title h1 {
        font-size: 3.5rem;
    }
    
    .hero-subtitle p {
        font-size: 1.1rem;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    /* Sections */
    section {
        padding: 6rem 0;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .section-header {
        margin-bottom: 3rem;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 2rem;
    }
    
    /* Philosophy */
    .philosophy-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .philosophy-card {
        padding: 2rem;
    }
    
    /* Company */
    .company-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .company-visual {
        height: 300px;
    }
    
    /* Contact */
    .contact-form {
        max-width: 500px;
    }
    
    /* Animations - Reduced complexity */
    .floating-shape {
        animation-duration: 8s;
    }
    
    .glitch-text {
        animation-duration: 3s;
    }
}

/* Small Devices (Landscape Phones, 576px and up) */
@media (max-width: 767.98px) {
    .container {
        max-width: 540px;
        padding: 0 1rem;
    }
    
    /* Navigation */
    .navbar {
        padding: 0.75rem 0;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-logo {
        font-size: 1.3rem;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: left 0.3s ease;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        font-size: 1.2rem;
    }
    
    /* Hero Section */
    .hero-section {
        min-height: 90vh;
        padding: 2rem 0;
    }
    
    .hero-title h1 {
        font-size: 2.5rem;
        line-height: 1.1;
        margin-bottom: 1.5rem;
    }
    
    .hero-subtitle p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .cta-button {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Floating Shapes - Simplified */
    .floating-shape {
        opacity: 0.05;
    }
    
    .shape-1 {
        width: 200px;
        height: 200px;
        top: 10%;
        left: 5%;
    }
    
    .shape-2 {
        width: 150px;
        height: 150px;
        top: 70%;
        right: 5%;
    }
    
    .shape-3 {
        width: 100px;
        height: 100px;
        bottom: 10%;
        left: 10%;
    }
    
    /* Sections */
    section {
        padding: 4rem 0;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    /* Philosophy */
    .philosophy-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .philosophy-card {
        padding: 1.5rem;
    }
    
    .philosophy-card h3 {
        font-size: 1.25rem;
    }
    
    .icon-3d {
        width: 60px;
        height: 60px;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .service-card h3 {
        font-size: 1.25rem;
    }
    
    /* Company */
    .company-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 0.75rem;
    }
    
    .info-label {
        font-size: 0.9rem;
    }
    
    .info-value {
        font-size: 1rem;
    }
    
    .company-visual {
        height: 250px;
    }
    
    /* Contact */
    .contact-form {
        max-width: 100%;
    }
    
    .form-group {
        margin-bottom: 1.5rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.875rem;
        font-size: 0.9rem;
    }
    
    .submit-button {
        padding: 0.875rem;
        font-size: 1rem;
    }
    
    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-logo {
        font-size: 1.1rem;
    }
    
    .footer-text {
        font-size: 0.8rem;
    }
    
    /* Loading Screen */
    .loading-logo {
        font-size: 3rem;
        margin-bottom: 1.5rem;
    }
    
    .loading-progress {
        width: 250px;
    }
    
    .loading-text {
        font-size: 0.8rem;
    }
    
    /* Reduced Animations for Performance */
    .glitch-text {
        animation-duration: 4s;
    }
    
    .floating-shape {
        animation-duration: 10s;
    }
    
    .pulse-animation {
        animation-duration: 3s;
    }
}

/* Extra Small Devices (Portrait Phones, less than 576px) */
@media (max-width: 575.98px) {
    .container {
        padding: 0 0.75rem;
    }
    
    /* Navigation */
    .nav-container {
        padding: 0 0.75rem;
    }
    
    .nav-logo {
        font-size: 1.2rem;
    }
    
    /* Hero Section */
    .hero-content {
        padding: 0 0.5rem;
    }
    
    .hero-title h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .cta-button {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
    
    /* Sections */
    section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-header {
        margin-bottom: 1.5rem;
    }
    
    /* Philosophy */
    .philosophy-card {
        padding: 1.25rem;
    }
    
    .philosophy-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .philosophy-card p {
        font-size: 0.9rem;
    }
    
    .icon-3d {
        width: 50px;
        height: 50px;
        margin-bottom: 1rem;
    }
    
    /* Services */
    .service-card {
        padding: 1.25rem;
    }
    
    .service-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .service-card p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .service-card li {
        font-size: 0.85rem;
        margin-bottom: 0.25rem;
    }
    
    /* Company */
    .info-item {
        padding: 0.5rem;
    }
    
    .info-label {
        font-size: 0.8rem;
    }
    
    .info-value {
        font-size: 0.9rem;
    }
    
    .company-visual {
        height: 200px;
    }
    
    /* Contact */
    .form-group input,
    .form-group textarea {
        padding: 0.75rem;
        font-size: 0.85rem;
    }
    
    .form-group label {
        font-size: 0.85rem;
    }
    
    .submit-button {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    /* Loading Screen */
    .loading-logo {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .loading-progress {
        width: 200px;
    }
    
    .loading-text {
        font-size: 0.75rem;
    }
    
    /* Minimal Animations for Performance */
    .floating-shape {
        display: none; /* Hide floating shapes on very small screens */
    }
    
    .glitch-text {
        animation: none; /* Disable complex glitch effect */
        text-shadow: none;
    }
    
    .typing-animation {
        animation: none; /* Disable typing animation */
        border-right: none;
        white-space: normal;
    }
    
    .icon-3d {
        animation: none; /* Disable 3D rotation */
    }
}

/* Landscape Orientation */
@media (max-width: 767.98px) and (orientation: landscape) {
    .hero-section {
        min-height: 100vh;
        padding: 1rem 0;
    }
    
    .hero-title h1 {
        font-size: 2.25rem;
    }
    
    .hero-subtitle p {
        margin-bottom: 1.5rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .nav-menu {
        height: calc(100vh - 60px);
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .icon-3d,
    .service-icon,
    .card-icon {
        transform: translateZ(0); /* Enable hardware acceleration */
    }
}

/* Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .floating-shape {
        animation: none;
    }
    
    .glitch-text {
        animation: none;
        text-shadow: none;
    }
    
    .typing-animation {
        animation: none;
        border-right: none;
    }
    
    .pulse-animation {
        animation: none;
    }
}

/* Print Styles */
@media print {
    * {
        animation: none !important;
        transition: none !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .navbar,
    .footer,
    #particles-js,
    #three-canvas,
    .floating-shape {
        display: none !important;
    }
    
    section {
        padding: 2rem 0 !important;
        page-break-inside: avoid;
    }
    
    .hero-section {
        min-height: auto !important;
    }
    
    .section-title,
    .hero-title h1 {
        color: black !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: light) {
    :root {
        --dark-bg: #f8f9fa;
        --darker-bg: #e9ecef;
        --text-primary: #212529;
        --text-secondary: #6c757d;
    }
    
    body {
        background: var(--dark-bg);
        color: var(--text-primary);
    }
}

/* Focus Styles for Accessibility */
@media (max-width: 767.98px) {
    .nav-link:focus,
    .cta-button:focus,
    .submit-button:focus,
    .form-group input:focus,
    .form-group textarea:focus {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }
    
    .hamburger:focus {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }
}

/* Touch-friendly Interactive Elements */
@media (max-width: 767.98px) {
    .cta-button,
    .submit-button,
    .nav-link {
        min-height: 44px; /* iOS recommended touch target size */
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hamburger {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
}

/* Performance Optimizations for Mobile */
@media (max-width: 767.98px) {
    .will-change-transform {
        will-change: auto; /* Reduce GPU usage on mobile */
    }
    
    .gpu-accelerated {
        transform: none; /* Disable GPU acceleration on mobile */
    }
    
    /* Reduce particle effects */
    #particles-js {
        opacity: 0.3;
    }
    
    /* Simplify background canvas */
    #three-canvas {
        opacity: 0.5;
    }
}