/* css/style.css */
:root {
    --bg-main: #0c0e12;
    --bg-card: #161a22;
    --text-primary: #f8f9fa;
    --text-secondary: #9ba1b0;
    --text-muted: #6b7280;

    --accent-blue: #3a86ff;
    --accent-emerald: #06d6a0;
    --accent-purple: #8e44ad;
    --accent-dark: #21252d;

    --border-color: rgba(255, 255, 255, 0.08);
    --hover-overlay: rgba(20, 23, 29, 0.85);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Scrollbar styles */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 6%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(12, 14, 18, 0.8);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: 1.5px;
}

.logo span {
    color: var(--accent-blue);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-blue);
}

.lang-switcher {
    display: flex;
    gap: 8px;
    margin-left: 1rem;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-family: var(--font-body);
    transition: all 0.3s ease;
}

.lang-btn:hover,
.lang-btn.active {
    color: var(--text-primary);
    border-color: var(--accent-blue);
    background: rgba(58, 134, 255, 0.15);
}

/* HUB HERO */
.hero-hub {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
}

.hub-container {
    display: flex;
    width: 90%;
    height: 75vh;
    max-height: 700px;
    gap: 1.5rem;
    max-width: 1400px;
}

.hub-card {
    flex: 1;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    align-items: flex-end;
    padding: 3.5rem;
    transition: flex 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
}

/* Background images for Hero */
.hub-card.corporate {
    background: linear-gradient(0deg, rgba(12, 14, 18, 0.95) 0%, rgba(12, 14, 18, 0.4) 100%), url('../assets/images/Soluções%20Corporativas.png'), var(--bg-card);
    background-size: cover;
    background-position: center;
}

.hub-card.academy {
    background: linear-gradient(0deg, rgba(12, 14, 18, 0.95) 0%, rgba(12, 14, 18, 0.4) 100%), url('../assets/images/Espaço%20de%20Investigação.png'), var(--bg-card);
    background-size: cover;
    background-position: center;
}

.hub-card:hover {
    flex: 1.35;
}

.hub-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 100%);
    opacity: 0.5;
    transition: opacity 0.4s;
}

.hub-card:hover .hub-overlay {
    opacity: 0.8;
}

.hub-content {
    position: relative;
    z-index: 2;
    transform: translateY(15px);
    transition: transform 0.4s ease;
}

.hub-card:hover .hub-content {
    transform: translateY(0);
}

.hub-content h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
    line-height: 1.1;
}

.hub-card.corporate h2 {
    color: #f8f9fa;
}

.hub-card.academy h2 {
    color: #f8f9fa;
}

.hub-content p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease 0.1s;
    max-width: 400px;
}

.hub-card:hover .hub-content p {
    opacity: 1;
    transform: translateY(0);
}

/* TIMELINE SEC */
.timeline-section {
    padding: 8rem 6%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.2rem;
}

.timeline-container {
    display: flex;
    gap: 5rem;
    position: relative;
}

/* SIDEBAR PROGRESS */
.timeline-progress {
    position: sticky;
    top: 15rem;
    height: 400px;
    width: 250px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.progress-bar {
    position: absolute;
    left: 17px;
    top: 20px;
    bottom: 20px;
    width: 2px;
    background: var(--border-color);
    z-index: 0;
}

.progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: var(--accent-blue);
    transition: height 0.4s ease;
}

.step {
    position: relative;
    padding-left: 55px;
    font-weight: 500;
    font-size: 1.2rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
    z-index: 1;
}

.step::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg-main);
    border: 2px solid var(--border-color);
    transition: all 0.3s;
}

.step.active {
    color: var(--text-primary);
    font-size: 1.35rem;
    font-weight: 600;
}

.step.active::before {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    box-shadow: 0 0 15px rgba(58, 134, 255, 0.4);
}

/* GALERIA TECH */
.gallery-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8rem;
}

.phase-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

.tech-card {
    position: relative;
    height: 480px;
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg-card);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid var(--border-color);
}

.tech-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.card-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: var(--accent-dark);
    transition: transform 0.6s ease;
    opacity: 0.5;
}

.tech-card:hover .card-bg {
    transform: scale(1.08);
    opacity: 0.3;
}

.card-header {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

.tag {
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(8px);
}

.academy-tag {
    background: rgba(142, 68, 173, 0.15);
    color: #d78eff;
    border: 1px solid rgba(142, 68, 173, 0.4);
}

.maintance-tag {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px dashed var(--border-color);
}

.update-tag {
    background: rgba(58, 134, 255, 0.15);
    color: #8bb4f6;
    border: 1px solid rgba(58, 134, 255, 0.3);
}

.card-details {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem 2rem;
    background: linear-gradient(180deg, rgba(22, 26, 34, 0) 0%, rgba(22, 26, 34, 0.95) 40%, rgba(22, 26, 34, 1) 100%);
    border-top: 1px solid transparent;
    transform: translateY(calc(100% - 100px));
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.tech-card:hover .card-details {
    transform: translateY(0);
    border-top-color: rgba(255, 255, 255, 0.05);
}

.card-details h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.specs {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    opacity: 0;
    transition: opacity 0.4s ease 0.1s;
}

.tech-card:hover .specs {
    opacity: 1;
}

.transparency-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 1rem;
    border-left: 2px solid var(--border-color);
    padding-left: 10px;
}

/* Button Group for cards */
.btn-group {
    display: flex;
    gap: 10px;
    width: 100%;
}

.wa-btn,
.validate-btn,
.about-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    opacity: 0;
    transform: translateY(10px);
}

.wa-btn {
    background: var(--accent-emerald);
    color: #0a0b0e;
    width: 100%;
}

.wa-btn:hover {
    background: #05b586;
}

.btn-group .wa-btn {
    flex: 2;
    width: auto;
}

.validate-btn {
    background: var(--accent-purple);
    color: #fff;
    margin-bottom: 10px;
    width: 100%;
}

.validate-btn:hover {
    background: #732d91;
}

.about-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    flex: 1;
}

.about-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

.tech-card:hover .wa-btn,
.tech-card:hover .validate-btn,
.tech-card:hover .about-btn {
    opacity: 1;
    transform: translateY(0);
}

.tech-card:hover .wa-btn {
    transition-delay: 0.2s;
}

.tech-card:hover .about-btn {
    transition-delay: 0.3s;
}

.tech-card:hover .validate-btn {
    transition-delay: 0.1s;
}

/* MODALS */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background: var(--bg-card);
    padding: 3.5rem;
    border-radius: 20px;
    max-width: 550px;
    width: 90%;
    position: relative;
    border: 1px solid var(--border-color);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    animation: slideUp 0.4s ease forwards;
}

@keyframes slideUp {
    to {
        transform: translateY(0);
    }
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.3s;
}

.close-btn:hover {
    color: #fff;
}

.modal-body h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.modal-body p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1rem;
}

#academico-form input {
    width: 100%;
    padding: 1.2rem;
    border: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    color: #fff;
    margin-bottom: 1.2rem;
    font-size: 1rem;
    font-family: var(--font-body);
}

#academico-form input:focus {
    outline: none;
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 2px rgba(142, 68, 173, 0.2);
}

.submit-btn {
    width: 100%;
    padding: 1.2rem;
    background: var(--accent-purple);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.submit-btn:hover {
    background: #732d91;
    transform: translateY(-2px);
}

/* PROFILE SWITCH & PDF LINK */
.labctex-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto 3rem auto;
    padding: 2rem 6%;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.profile-toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.toggle-label {
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.toggle-label.active {
    color: var(--text-primary);
    font-weight: 600;
}

.tech-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.tech-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--accent-emerald);
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: #000;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--accent-purple);
}

input:checked+.slider:before {
    transform: translateX(26px);
    background-color: #fff;
}

.pdf-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.pdf-link-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-secondary);
}

@media (max-width: 768px) {
    .labctex-toolbar {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
}

/* QUOTE WIDGET */
.quote-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(22, 26, 34, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--accent-emerald);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    z-index: 2000;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.4s ease;
}

.quote-widget.hidden {
    transform: translateY(150px);
    opacity: 0;
    pointer-events: none;
}

.quote-header {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.badge {
    background: var(--accent-emerald);
    color: #000;
    padding: 2px 10px;
    border-radius: 50px;
    font-size: 0.9rem;
}

.quote-widget .submit-btn {
    background: var(--accent-emerald);
    color: #000;
    padding: 1rem 1.5rem;
}

.quote-widget .submit-btn:hover {
    background: #05b586;
}

/* EXTENSION MODAL */
.large-modal {
    max-width: 850px;
}

.modal-body-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2.5rem;
    align-items: start;
}

.modal-specs-col {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px dashed var(--border-color);
}

.modal-specs-col h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--accent-emerald);
    margin-bottom: 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.spec-item {
    margin-bottom: 1.2rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.spec-item:last-child {
    margin-bottom: 0;
}

.spec-item strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.4rem;
}

/* RESPONSIVENESS */

@media (max-width: 1024px) {
    .hub-container {
        flex-direction: column;
        height: auto;
        margin-bottom: 4rem;
    }

    .hub-card {
        padding: 3rem;
        min-height: 350px;
    }

    .hub-card:hover {
        flex: 1;
        transform: translateY(-5px);
    }

    .timeline-container {
        flex-direction: column;
        gap: 4rem;
    }

    .timeline-progress {
        position: relative;
        top: 0;
        width: 100%;
        height: auto;
        flex-direction: row;
        margin-bottom: 2rem;
    }

    .progress-bar {
        top: 35px;
        left: 0;
        right: 0;
        height: 1px;
        width: 100%;
        bottom: auto;
    }

    .progress-fill {
        height: 100%;
        width: 0%;
        transition: width 0.4s ease;
    }

    .step {
        padding-left: 0;
        padding-top: 45px;
        font-size: 1.1rem;
        text-align: center;
        flex: 1;
    }

    .step::before {
        top: 12px;
        left: 50%;
        transform: translateX(-50%);
    }

    .step.active {
        font-size: 1.2rem;
    }

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

@media (max-width: 600px) {
    .navbar {
        padding: 1.5rem 5%;
    }

    .nav-links {
        display: none;
    }

    .section-title {
        font-size: 2.2rem;
    }

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

/* COMING SOON OVERLAY - BLOG */
.coming-soon-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(12, 14, 18, 0.85);
    z-index: 5000;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
}

.ribbon {
    position: absolute;
    width: 150vw;
    height: 80px;
    background: repeating-linear-gradient(45deg,
            #f1c40f,
            #f1c40f 40px,
            #111 40px,
            #111 80px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    z-index: 5001;
}

.ribbon-left {
    transform: rotate(45deg);
}

.ribbon-right {
    transform: rotate(-45deg);
}

.coming-soon-text {
    position: relative;
    z-index: 5002;
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 1.5rem 4rem;
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    text-transform: uppercase;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9);
    letter-spacing: 4px;
}

@media (max-width: 768px) {
    .coming-soon-text {
        font-size: 2rem;
        padding: 1rem 2rem;
    }

    .ribbon {
        height: 50px;
    }
}