


@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-container {
        gap: 3rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .services-grid,
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .about-content,
    .contact-content {
        gap: 3rem;
    }
    
    .about-stats {
        gap: 1.5rem;
    }
}


@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-container {
        padding: 0.3rem 1rem;
    }
    
    .nav-logo .logo {
        height: 35px;
    }
    
    .nav-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    .nav-menu a {
        font-size: 1.2rem;
        padding: 1rem;
        display: block;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(0, 255, 255, 0.1);
    }
    
    .hamburger {
        display: flex;
    }
}

/* Media query para telas muito pequenas */
@media (max-width: 480px) {
    .nav-container {
        padding: 0.2rem 0.8rem;
    }
    
    .nav-logo .logo {
        height: 30px;
    }
    
    .hero {
        min-height: 40vh;
        padding: 1rem 0;
        margin-top: 50px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
        gap: 0.8rem;
        margin-bottom: 1rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .hero-card {
        width: 95%;
        max-width: 400px;
        min-height: 300px;
        height: auto;
        margin: 0 auto;
        padding: 0.5rem;
        gap: 0.4rem;
    }
    
    /* Mobile Terminal Optimization */
    .terminal-demo {
        height: 180px;
        margin-bottom: 0.4rem;
    }
    
    .terminal-content {
        font-size: 0.8rem;
        padding: 0.5rem;
        line-height: 1.4;
    }
    
    .code-editors-container {
        height: 140px;
        gap: 0.2rem;
    }
    
    .code-editor-demo {
        height: 65px;
    }
    
    .code-content {
        font-size: 0.7rem;
        padding: 0.3rem;
    }
    
    .metrics-demo {
        height: 60px;
        gap: 0.2rem;
    }
    
    .metric-card {
        padding: 0.4rem;
    }
    
    .metric-value {
        font-size: 0.9rem;
    }
    
    .metric-label {
        font-size: 0.7rem;
    }
    
    .status-display {
        padding: 0.8rem;
        margin-top: 0.4rem;
    }
    
    .status-content {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }
    
    .status-item {
        padding: 0.6rem;
    }
    
    .status-text {
        font-size: 0.75rem;
    }
    
    .floating-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    
    section {
        padding: 2rem 0;
    }
    
    .section-header {
        margin-bottom: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .portfolio-image img {
        height: 200px;
    }
    
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    /* RESPONSIVIDADE TABLET - NOVA IMPLEMENTAÇÃO */
    .about-image-container {
        width: 300px;
        height: 300px;
    }
    
    .tech-orbit {
        width: 300px;
        height: 300px;
    }
    
    .tech-icon {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .tech-icon:nth-child(1) { 
        top: 37px; 
        left: 150px; 
    }
    
    .tech-icon:nth-child(2) { 
        top: 94px; 
        left: 244px; 
    }
    
    .tech-icon:nth-child(3) { 
        top: 206px; 
        left: 244px; 
    }
    
    .tech-icon:nth-child(4) { 
        top: 263px; 
        left: 150px; 
    }
    
    .tech-icon:nth-child(5) { 
        top: 206px; 
        left: 56px; 
    }
    
    .tech-icon:nth-child(6) { 
        top: 94px; 
        left: 56px; 
    }
    
    .center-logo {
        width: 90px;
        height: 90px;
        font-size: 1.3rem;
    }
    
    .center-logo span {
        font-size: 0.6rem;
    }
    
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-item {
        margin-bottom: 1.5rem;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
        margin-right: 1rem;
        font-size: 1.2rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    
    .whatsapp-bot {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }
    
    .whatsapp-bot i {
        font-size: 26px;
    }
    
    .whatsapp-tooltip {
        bottom: 65px;
        right: -20px;
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
    
    
    .scroll-to-top {
        bottom: 20px;
        left: 20px;
        width: 45px;
        height: 45px;
    }
}


@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .hero {
        min-height: 35vh;
        padding: 1rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
        margin-bottom: 1rem;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
        padding: 0.8rem 1.5rem;
    }
    
    .hero-card {
        width: 95%;
        max-width: 350px;
        min-height: 200px;
        height: auto;
        padding: 0.4rem;
        gap: 0.3rem;
    }
    
    /* Extra Small Mobile Terminal Optimization */
    .terminal-demo {
        height: 140px;
        margin-bottom: 0.3rem;
    }
    
    .terminal-content {
        font-size: 0.75rem;
        padding: 0.5rem;
        line-height: 1.3;
    }
    
    .code-editors-container {
        height: 100px;
    }
    
    .code-editor-demo {
        height: 45px;
    }
    
    .metrics-demo {
        height: 40px;
    }
    
    .status-display {
        padding: 0.6rem;
    }
    
    section {
        padding: 1.5rem 0;
    }
    
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    
    .service-card {
        padding: 1.2rem;
    }
    
    .service-card h3 {
        font-size: 1.3rem;
    }
    
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    /* RESPONSIVIDADE MOBILE - NOVA IMPLEMENTAÇÃO */
    .about-image-container {
        width: 200px;
        height: 200px;
        margin: 0 auto 1rem;
    }
    
    .tech-orbit {
        width: 200px;
        height: 200px;
    }
    
    .tech-icon {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    .tech-icon:nth-child(1) { 
        top: 25px; 
        left: 100px; 
    }
    
    .tech-icon:nth-child(2) { 
        top: 62px; 
        left: 162px; 
    }
    
    .tech-icon:nth-child(3) { 
        top: 138px; 
        left: 162px; 
    }
    
    .tech-icon:nth-child(4) { 
        top: 175px; 
        left: 100px; 
    }
    
    .tech-icon:nth-child(5) { 
        top: 138px; 
        left: 38px; 
    }
    
    .tech-icon:nth-child(6) { 
        top: 62px; 
        left: 38px; 
    }
    
    .center-logo {
        width: 60px;
        height: 60px;
        font-size: 0.9rem;
    }
    
    .center-logo span {
        font-size: 0.5rem;
    }
    
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .contact-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .contact-form {
        padding: 1rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        gap: 1rem;
    }
    
    
    .loading-logo {
        width: 100px;
        margin-bottom: 20px;
    }
    
    .loading-spinner {
        width: 40px;
        height: 40px;
        margin-bottom: 15px;
    }
}


@media (max-width: 360px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .hero-card {
        width: 220px;
        height: 180px;
    }
    
    .floating-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .contact-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .whatsapp-button {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
    }
    
    .scroll-to-top {
        width: 40px;
        height: 40px;
    }
}


@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 50vh;
    }
    
    .hero-container {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .nav-menu {
        height: calc(100vh - 60px);
    }
}


@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-background {
        background-size: 50% 50%;
    }
}


@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-background {
        animation: none;
    }
    
    .floating-icon {
        animation: none;
    }
    
    .hero-card {
        animation: none;
    }
    
    .typing-text::after {
        animation: none;
    }
}


@media print {
    .navbar,
    .whatsapp-bot,
    .scroll-to-top,
    #loading-screen {
        display: none !important;
    }
    
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
    
    section {
        padding: 1rem 0;
        page-break-inside: avoid;
    }
    
    .hero-background {
        display: none;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .service-card,
    .portfolio-item,
    .contact-form {
        border: 1px solid #ccc !important;
        background: white !important;
    }
}
