/* ==================================================
   PROJETOS PAGE - ImaginaTech Portfolio
   ================================================== */

:root {
    --primary-blue: #2A6EA7;
    --secondary-blue: #57D4CA;
    --neon-blue: #00D4FF;
    --neon-red: #FF0055;
    --dark-bg: #05070a;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-stroke: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--dark-bg);
    color: #fff;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* ========== COSMIC BACKGROUND ========== */
.cosmic-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #0a0e1a 0%, #1a2332 50%, #0a0e1a 100%);
}

.cosmic-bg::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    filter: blur(150px);
    animation: float-orb-1 20s infinite ease-in-out;
    pointer-events: none;
}

.cosmic-bg::after {
    content: '';
    position: absolute;
    bottom: -10%;
    right: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.1) 0%, transparent 70%);
    filter: blur(150px);
    animation: float-orb-2 25s infinite ease-in-out;
    pointer-events: none;
}

@keyframes float-orb-1 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(100px, 100px); }
}

@keyframes float-orb-2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-100px, -100px); }
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--neon-blue);
    border-radius: 50%;
    animation: float 20s infinite linear;
    opacity: 0.5;
}

@keyframes float {
    from { transform: translateY(100vh) translateX(0); }
    to { transform: translateY(-100px) translateX(100px); }
}

.grid-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: infinite-grid 15s linear infinite;
}

@keyframes infinite-grid {
    from { background-position: 0 0; }
    to { background-position: 50px 50px; }
}

/* ========== SCROLL PROGRESS ========== */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, #00D4FF, #00FF88);
    z-index: 10000;
    transition: width 0.1s ease;
}

/* ========== NAVBAR ========== */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    padding: 20px 40px;
    background: rgba(10, 14, 26, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-stroke);
    border-radius: 50px;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.37);
    transition: all 0.3s ease;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.navbar-right {
    display: flex;
    gap: 15px;
    align-items: center;
}

.logo-section {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.logo {
    font: 900 1.5rem 'Orbitron', monospace;
    background: linear-gradient(135deg, #00D4FF, #0077FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
    margin: 0;
}

.logo-subtitle {
    font-size: 0.7rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: rgba(0, 212, 255, 0.7);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.btn-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    height: 36px;
    background: transparent;
    color: #e0e0e0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
    box-sizing: border-box;
}

.btn-nav i {
    font-size: 0.9rem;
    width: 1rem;
    text-align: center;
    line-height: 1;
}

.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
    border-color: #00D4FF;
}

.btn-orcamento {
    background: linear-gradient(135deg, #00D4FF, #0077FF);
    color: white !important;
    border: 1px solid #00D4FF;
}

.btn-orcamento:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0, 212, 255, 0.5);
}

/* ========== HERO PROJETOS ========== */
.hero-projetos {
    padding: 180px 20px 80px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.breadcrumb {
    margin-bottom: 30px;
}

.breadcrumb ol {
    display: flex;
    justify-content: center;
    gap: 10px;
    list-style: none;
    font-size: 0.9rem;
}

.breadcrumb li {
    color: #94a3b8;
}

.breadcrumb li::after {
    content: '/';
    margin-left: 10px;
    color: rgba(148, 163, 184, 0.5);
}

.breadcrumb li:last-child::after {
    display: none;
}

.breadcrumb a {
    color: #00D4FF;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #00FF88;
}

.page-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, #00D4FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.page-subtitle {
    color: #94a3b8;
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* ========== FILTER SECTION ========== */
.filter-section {
    padding: 0 20px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.filter-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-stroke);
    border-radius: 50px;
    color: #94a3b8;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.3);
    color: #00D4FF;
}

.filter-btn.active {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(0, 119, 255, 0.2));
    border-color: #00D4FF;
    color: #00D4FF;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.filter-btn i {
    font-size: 0.85rem;
}

/* ========== PROJETOS SECTION ========== */
.projetos-section {
    padding: 0 20px 80px;
    max-width: 1400px;
    margin: 0 auto;
}

.projetos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* ========== PROJECT CARD ========== */
.projeto-card {
    background: rgba(15, 23, 42, 0.8);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 212, 255, 0.1);
    transition: all 0.4s ease;
    cursor: pointer;
}

.projeto-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 212, 255, 0.4);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.15);
}

.projeto-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.projeto-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.projeto-card:hover .projeto-image img {
    transform: scale(1.15);
    filter: brightness(1.1);
}

.projeto-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}

.projeto-category {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(0, 212, 255, 0.2);
    border: 1px solid #00D4FF;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #00D4FF;
    font-weight: 500;
}

.projeto-logo-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 3;
}

.projeto-card:hover .projeto-logo-overlay {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4);
}

.projeto-logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.projeto-info {
    padding: 20px;
}

.projeto-info h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 12px;
}

.projeto-specs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.spec-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 12px;
    font-size: 0.75rem;
    color: #00D4FF;
    font-weight: 500;
    white-space: nowrap;
}

.spec-badge i {
    font-size: 0.7rem;
}

/* ========== LOADING STATE ========== */
.loading-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(0, 212, 255, 0.1);
    border-top-color: #00D4FF;
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========== EMPTY STATE ========== */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #94a3b8;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.3;
}

.empty-state h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 10px;
}

/* ========== CTA SECTION ========== */
.cta-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, rgba(138, 43, 226, 0.05) 100%);
    border-top: 1px solid var(--glass-stroke);
    border-bottom: 1px solid var(--glass-stroke);
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.cta-content h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    color: #fff;
    margin-bottom: 15px;
}

.cta-content p {
    color: #94a3b8;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.4);
}

/* ========== MODAL ========== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 20px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(255, 0, 85, 0.3);
    transform: rotate(90deg);
}

.modal-image-container {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
}

.modal-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #0a0e1a;
}

.modal-info {
    padding: 25px;
}

.modal-info h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 15px;
}

.modal-specs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Modal Image Container com navegacao */
.modal-image-container {
    position: relative;
}

/* Botoes de navegacao do modal */
.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 212, 255, 0.4);
    border-radius: 50%;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-nav:hover {
    background: rgba(0, 212, 255, 0.3);
    border-color: var(--neon-cyan);
    transform: translateY(-50%) scale(1.1);
}

.modal-prev { left: 15px; }
.modal-next { right: 15px; }

/* Contador de fotos */
.modal-photo-counter {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    padding: 8px 16px;
    border-radius: 20px;
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

/* Miniaturas */
.modal-thumbnails {
    display: flex;
    gap: 8px;
    padding: 15px 25px;
    overflow-x: auto;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    flex-shrink: 0;
    opacity: 0.6;
}

.modal-thumbnail:hover {
    opacity: 0.9;
    border-color: rgba(0, 212, 255, 0.5);
}

.modal-thumbnail.active {
    border-color: var(--neon-cyan);
    opacity: 1;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.4);
}

.modal-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========== FOOTER ========== */
footer {
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid var(--glass-stroke);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.social-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-stroke);
    border-radius: 50%;
    color: #94a3b8;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: #00D4FF;
    color: #00D4FF;
    transform: translateY(-3px);
}

footer p {
    color: #64748b;
    font-size: 0.9rem;
}

/* ========== FAB ========== */
.fab-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.fab {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.fab-whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
}

.fab-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

.fab-tooltip {
    position: absolute;
    right: 70px;
    background: rgba(15, 23, 42, 0.95);
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.fab:hover .fab-tooltip {
    opacity: 1;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
    .projetos-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
    }

    .navbar-container {
        flex-direction: column;
        gap: 1rem;
    }

    .navbar-left,
    .navbar-right {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-projetos {
        padding: 200px 20px 60px;
    }

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

    .filter-container {
        gap: 8px;
    }

    .filter-btn {
        padding: 10px 15px;
        font-size: 0.8rem;
    }

    .filter-btn span {
        display: none;
    }

    .projetos-grid {
        grid-template-columns: 1fr;
    }

    .projeto-image {
        height: 220px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.2rem;
    }

    .btn-nav {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }

    .btn-nav span {
        display: none;
    }

    .page-title {
        font-size: 1.8rem;
    }

    .cta-content h2 {
        font-size: 1.5rem;
    }

    .fab {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}
