/* Responsive Design */

/* Large Desktop */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 4.5rem;
    }
    
    .section-header h2 {
        font-size: 3.5rem;
    }
}

/* Desktop */
@media (max-width: 1200px) {
    .hero-container {
        gap: 3rem;
    }
    
    .about-content {
        gap: 3rem;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
}

/* Tablet */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px 0;
    }
    
    .nav-menu {
        gap: 1.5rem;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-visual {
        order: -1;
        height: 300px;
    }
    
    .hero-graphic {
        width: 300px;
        height: 300px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .process-flow {
        flex-direction: column;
        gap: 2rem;
    }
    
    .process-arrow {
        transform: rotate(90deg);
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }

    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }

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

    .news-card.featured {
        grid-column: span 2;
        grid-row: span 1;
    }

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

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

    .section-header h2 {
        font-size: 2.5rem;
    }
}

/* Mobile Large */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
    }
    
    .container {
        padding: 0 15px;
    }
    
    /* Navigation Mobile */
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-medium);
        padding: 2rem 0;
        gap: 1rem;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        padding: 0.5rem 0;
        display: block;
        width: 100%;
    }
    
    .nav-cta {
        margin-top: 1rem;
        display: inline-block;
    }
    
    .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 {
        min-height: 90vh;
        padding-top: 70px;
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 1.5rem;
    }
    
    .stat h3 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .hero-visual {
        height: 250px;
    }
    
    .hero-graphic {
        width: 250px;
        height: 250px;
    }
    
    .floating-card {
        padding: 15px 20px;
        font-size: 0.9rem;
    }
    
    /* Typography Mobile */
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.2rem; }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-header p {
        font-size: 1.1rem;
    }
    
    /* About Mobile */
    .feature-list li {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    
    .feature-icon {
        font-size: 2.5rem;
    }
    
    .process-step {
        min-width: 120px;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    /* Portfolio Mobile */
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .portfolio-card {
        padding: 1.5rem;
    }
    
    .card-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .company-tag {
        align-self: flex-start;
    }
    
    .tech-tags {
        gap: 0.3rem;
    }
    
    .tag {
        font-size: 0.75rem;
        padding: 0.25rem 0.6rem;
    }

    /* Team Mobile */
    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .team-card {
        padding: 1.5rem;
    }

    .placeholder-avatar {
        width: 100px;
        height: 100px;
        font-size: 1rem;
    }

    /* News Mobile */
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .news-card.featured {
        grid-column: span 1;
        grid-row: span 1;
    }

    .news-card.featured .news-image {
        height: 200px;
    }

    .news-content {
        padding: 1rem;
    }

    .news-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

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

    .contact-form-container {
        padding: 1.5rem;
    }

    .application-cta {
        padding: 1.5rem;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

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

    /* Scroll to Top Mobile */
    .scroll-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }

    /* Notification Mobile */
    .notification {
        top: 1rem;
        right: 1rem;
        left: 1rem;
        transform: translateY(-100%);
    }

    .notification.show {
        transform: translateY(0);
    }
}

/* Mobile Small */
@media (max-width: 480px) {
    :root {
        --section-padding: 50px 0;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat h3 {
        font-size: 1.8rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    .portfolio-card {
        padding: 1rem;
    }
    
    .floating-card {
        padding: 10px 15px;
        font-size: 0.8rem;
    }
    
    .hero-graphic {
        width: 200px;
        height: 200px;
    }
    
    .process-flow {
        gap: 1.5rem;
    }
    
    .process-step {
        min-width: 100px;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Mobile Extra Small */
@media (max-width: 320px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-header h2 {
        font-size: 1.6rem;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .portfolio-card {
        padding: 0.8rem;
    }
    
    .card-content h4 {
        font-size: 1.1rem;
    }
    
    .card-content p {
        font-size: 0.9rem;
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding-top: 70px;
    }
    
    .hero-container {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .hero-visual {
        order: 0;
        height: 200px;
    }
    
    .hero-graphic {
        width: 200px;
        height: 200px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-stats {
        flex-direction: row;
        gap: 1rem;
    }
    
    .hero-buttons {
        flex-direction: row;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .nav-toggle,
    .hero-buttons,
    .btn {
        display: none;
    }
    
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .section-header,
    .about,
    .portfolio {
        padding: 2rem 0;
    }
    
    .portfolio-card,
    .feature-list li {
        box-shadow: none;
        border: 1px solid var(--border-color);
    }
    
    .floating-card {
        position: static;
        display: inline-block;
        margin: 0.5rem;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --shadow-light: 0 4px 6px rgba(0, 0, 0, 0.3);
        --shadow-medium: 0 10px 25px rgba(0, 0, 0, 0.4);
        --shadow-heavy: 0 20px 40px rgba(0, 0, 0, 0.5);
    }
    
    .portfolio-card,
    .feature-list li,
    .floating-card {
        border: 2px solid var(--border-color);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .floating-card {
        animation: none;
    }
}
