/* ================================
   CSS Reset & Base Styles
   ================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #F7F9FB;
    color: #1E293B;
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 70px;
}

/* ================================
   Accessibility - Focus Indicators
   ================================ */

*:focus-visible {
    outline: 3px solid #2563EB;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ================================
   Navigation Menu
   ================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563EB;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-logo:hover {
    color: #1d4ed8;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-item {
    margin: 0;
}

.nav-link {
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #2563EB;
    background: rgba(37, 99, 235, 0.1);
}

.nav-link.active {
    color: #2563EB;
    background: rgba(37, 99, 235, 0.1);
}

.nav-link:focus-visible {
    outline: 3px solid #2563EB;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Language Toggle */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: transparent;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 0.4rem 0.75rem;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-left: 1rem;
}

.lang-toggle:hover {
    border-color: #2563EB;
    background: rgba(37, 99, 235, 0.05);
}

.lang-option {
    color: #94A3B8;
    transition: color 0.3s ease;
}

.lang-option.active {
    color: #2563EB;
    font-weight: 600;
}

.lang-separator {
    color: #E2E8F0;
    font-weight: 300;
}

/* ================================
   Utility Classes
   ================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 3rem;
    color: #1E293B;
}

/* ================================
   Hero Section
   ================================ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffffff 0%, #F7F9FB 100%);
    padding: 40px 20px;
    animation: fadeIn 1s ease-in;
    position: relative;
    overflow: hidden;
}

/* Data Analytics Pattern Background */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.03;
    background-image:
        /* Grid pattern */
        linear-gradient(90deg, #2563EB 1px, transparent 1px),
        linear-gradient(#2563EB 1px, transparent 1px),
        /* Diagonal lines */
        repeating-linear-gradient(45deg, transparent, transparent 35px, #2563EB 35px, #2563EB 36px),
        repeating-linear-gradient(-45deg, transparent, transparent 35px, #2563EB 35px, #2563EB 36px);
    background-size:
        50px 50px,
        50px 50px,
        100px 100px,
        100px 100px;
    background-position:
        -1px -1px,
        -1px -1px,
        0 0,
        0 0;
    pointer-events: none;
}

/* Tech Stack Background */
.tech-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
}

.tech-word {
    position: absolute;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #2563EB;
    font-size: 2rem;
    white-space: nowrap;
    animation: fadeOutWord 3.5s ease-out forwards;
    user-select: none;
    opacity: 0.04;
}

.tech-word:nth-child(odd) {
    font-size: 2.5rem;
    opacity: 0.05;
}

.tech-word:nth-child(3n) {
    font-size: 1.8rem;
    opacity: 0.03;
}

@keyframes fadeOutWord {
    0% {
        opacity: inherit;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0.15;
        transform: translateY(-15px) scale(0.98);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    text-align: center;
    max-width: 800px;
    animation: slideUp 1s ease-out;
    position: relative;
    z-index: 1;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-photo {
    width: 180px;
    height: 180px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.15);
    border: 5px solid #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.15);
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.welcome-message {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1E293B;
    letter-spacing: -0.5px;
}

.hero-description {
    font-size: 1.2rem;
    font-weight: 300;
    color: #475569;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

/* CTA Button */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: #2563EB;
    color: #ffffff;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    margin-top: 2rem;
    animation: fadeInUp 1.2s ease-out 0.3s both;
}

.cta-button:hover {
    background: #1d4ed8;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.cta-button:active {
    transform: translateY(-1px);
}

.cta-button svg {
    width: 20px;
    height: 20px;
}

/* Scroll Indicator */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 3rem;
    cursor: pointer;
    animation: fadeInUp 1.5s ease-out 0.5s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: #2563EB;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.scroll-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.1);
    color: #2563EB;
    transition: all 0.3s ease;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.scroll-indicator:hover .scroll-text {
    color: #1d4ed8;
}

.scroll-indicator:hover .scroll-arrow {
    background: rgba(37, 99, 235, 0.2);
    transform: translateY(5px);
    animation: none;
}

/* ================================
   Portfolio Section
   ================================ */

.portfolio {
    padding: 80px 20px;
    background-color: #F7F9FB;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    justify-content: center;
}

.project-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.01);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.1);
}

.project-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

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

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #1E293B;
}

.project-description {
    font-size: 0.95rem;
    color: #64748B;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.project-tag {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    background: #F1F5F9;
    color: #64748B;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid #E2E8F0;
}

.project-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: auto;
}

.btn-primary {
    display: inline-block;
    background-color: #2563EB;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
    flex: 1;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:focus-visible {
    outline: 3px solid #2563EB;
    outline-offset: 2px;
    border-radius: 4px;
}

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: #64748B;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #E2E8F0;
    flex: 1;
}

.btn-secondary:hover {
    background-color: #F7F9FB;
    color: #475569;
    border-color: #CBD5E1;
    transform: translateY(-1px);
}

.btn-secondary:focus-visible {
    outline: 3px solid #2563EB;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Status Badge */
.status-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(251, 191, 36, 0.95);
    color: #78350f;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(4px);
}

.status-badge.incoming {
    background: rgba(251, 191, 36, 0.95);
    color: #78350f;
}

/* Disabled Button State */
.btn-primary.disabled,
button.btn-primary:disabled {
    background-color: #CBD5E1;
    color: #94A3B8;
    cursor: not-allowed;
    box-shadow: none;
    border: none;
}

.btn-primary.disabled:hover,
button.btn-primary:disabled:hover {
    background-color: #CBD5E1;
    transform: none;
    box-shadow: none;
}

/* Button Visibility Controls */
.btn-desktop-only {
    display: inline-block;
}

.btn-mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .btn-desktop-only {
        display: none;
    }

    .btn-mobile-only {
        display: inline-block;
    }

    .project-buttons {
        flex-direction: column;
    }
}

/* Dashboard Only Modal Styles */
.dashboard-only-modal {
    max-width: 95vw;
    width: 95vw;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
}

.dashboard-only-modal .modal-header {
    padding: 0.75rem 1.25rem;
    flex-shrink: 0;
    min-height: 50px;
}

.dashboard-only-modal .modal-header h3 {
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.3;
}

.dashboard-only-modal .modal-subtitle {
    font-size: 0.75rem;
    margin-top: 0.15rem;
}

.dashboard-only-modal .modal-body {
    padding: 0;
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.dashboard-fullscreen {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #ffffff;
    border-radius: 0;
    overflow: hidden;
    margin: 0;
    box-shadow: none;
    flex: 1;
    min-height: 0;
}

.dashboard-fullscreen .dashboard-header {
    padding: 0.75rem 1.25rem;
    flex-shrink: 0;
}

.dashboard-fullscreen iframe {
    flex: 1;
    width: 100%;
    height: 100%;
    border: none;
    min-height: 700px;
}

.dashboard-only-modal .modal-footer {
    padding: 0.75rem 1.5rem;
    flex-shrink: 0;
    max-height: 60px;
    overflow-y: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard-only-modal .modal-footer .tech-stack-tags {
    gap: 0.5rem;
    margin: 0;
    justify-content: center;
}

.dashboard-only-modal .tech-tag {
    font-size: 0.7rem;
    padding: 0.35rem 0.75rem;
}

/* Desktop: Dashboard ocupa ~85-90% da altura */
@media (min-width: 1025px) {
    .dashboard-only-modal {
        max-width: 95vw;
        max-height: 95vh;
    }

    .dashboard-fullscreen iframe {
        min-height: 750px;
    }
}

/* Tablet: Dashboard ocupa ~75-80% da altura */
@media (min-width: 769px) and (max-width: 1024px) {
    .dashboard-only-modal {
        max-width: 92vw;
        width: 92vw;
        max-height: 92vh;
    }

    .dashboard-fullscreen iframe {
        min-height: 600px;
    }
}

/* Mobile: Dashboard em fullscreen */
@media (max-width: 768px) {
    .dashboard-only-modal {
        max-width: 100vw;
        width: 100vw;
        height: 95vh;
        max-height: 95vh;
        margin: 0;
        border-radius: 0;
    }

    .dashboard-only-modal .modal-header {
        padding: 0.5rem 0.75rem;
        min-height: 45px;
    }

    .dashboard-only-modal .modal-header h3 {
        font-size: 1rem;
    }

    .dashboard-only-modal .modal-subtitle {
        font-size: 0.7rem;
    }

    .dashboard-only-modal .modal-body {
        flex: 1;
        min-height: 0;
        overflow: hidden;
    }

    .dashboard-fullscreen {
        border-radius: 0;
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .dashboard-fullscreen .dashboard-header {
        padding: 0.5rem 0.75rem;
        flex-shrink: 0;
    }

    .dashboard-fullscreen .dashboard-body {
        flex: 1;
        min-height: 0;
        overflow: hidden;
    }

    .dashboard-fullscreen iframe {
        min-height: 100%;
        height: 100%;
    }

    .dashboard-only-modal .modal-footer {
        padding: 0.5rem 0.75rem;
        max-height: 50px;
        flex-shrink: 0;
    }

    .dashboard-only-modal .tech-tag {
        font-size: 0.6rem;
        padding: 0.25rem 0.5rem;
    }
}

/* Agent Only Modal Styles - Maximized Chat */
.agent-only-modal {
    max-width: 700px;
    width: 95vw;
    height: 90vh;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
}

/* Header compacto do Agent */
.agent-compact-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, #2563EB 0%, #1d4ed8 100%);
    flex-shrink: 0;
}

.agent-compact-title {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
}

.agent-compact-title svg {
    fill: #ffffff;
    stroke: #ffffff;
}

.agent-compact-close {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 300;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.agent-compact-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.agent-compact-close:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Chat container maximizado */
.agent-only-modal .agent-chat-container {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    background: #F8FAFC;
    display: flex;
    flex-direction: column;
}

/* Input container fixo embaixo */
.agent-only-modal .agent-input-container {
    flex-shrink: 0;
    padding: 1rem 1.25rem;
    background: #ffffff;
    border-top: 1px solid #E2E8F0;
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

/* Tablet */
@media (max-width: 1024px) {
    .agent-only-modal {
        max-width: 95vw;
        height: 85vh;
    }
}

/* Agent Only Modal - Email Gate Styles */
.agent-only-modal .agent-email-gate {
    max-width: 100%;
    width: 100%;
    margin: auto;
    padding: 2rem 1.5rem;
    border: none;
    box-shadow: none;
    background: transparent;
}

.agent-only-modal .agent-email-gate h4 {
    font-size: 1.35rem;
}

.agent-only-modal .agent-email-gate p {
    font-size: 0.95rem;
}

.agent-only-modal .email-gate-form {
    max-width: 350px;
    margin: 0 auto;
}

/* Agent Only Modal - Welcome & Messages */
.agent-only-modal .agent-welcome {
    max-width: 100%;
    width: 100%;
    margin: auto;
    padding: 2rem 1.5rem;
    border: none;
    box-shadow: none;
    background: transparent;
}

.agent-only-modal .agent-welcome h4 {
    font-size: 1.35rem;
}

.agent-only-modal .agent-welcome p {
    font-size: 0.95rem;
}

.agent-only-modal .agent-features {
    max-width: 350px;
    margin: 0 auto;
}

/* Agent Only Modal - Input */
.agent-only-modal .agent-input-container input {
    flex: 1;
    padding: 0.875rem 1rem;
    border: 2px solid #E2E8F0;
    border-radius: 10px;
    font-size: 0.95rem;
    background: #F8FAFC;
}

.agent-only-modal .agent-send-btn {
    padding: 0.875rem 1.25rem;
    min-width: 50px;
}

/* Mobile - Fullscreen */
@media (max-width: 768px) {
    .agent-only-modal {
        max-width: 100vw;
        width: 100vw;
        height: 100vh;
        max-height: 100vh;
        margin: 0;
        border-radius: 0;
    }

    .agent-compact-header {
        padding: 0.625rem 1rem;
        flex-shrink: 0;
    }

    .agent-compact-title {
        font-size: 0.9rem;
    }

    .agent-only-modal .agent-chat-container {
        padding: 1rem;
        flex: 1;
        min-height: 0;
        overflow-y: auto;
    }

    .agent-only-modal .agent-input-container {
        padding: 0.75rem 1rem;
        flex-shrink: 0;
    }

    .agent-only-modal .agent-email-gate {
        padding: 1.5rem 1rem;
    }

    .agent-only-modal .agent-email-gate h4 {
        font-size: 1.2rem;
    }

    .agent-only-modal .agent-welcome {
        padding: 1.5rem 1rem;
    }

    .agent-only-modal .agent-welcome h4 {
        font-size: 1.2rem;
    }

    .agent-only-modal .agent-welcome p {
        font-size: 0.9rem;
    }

    .agent-only-modal .agent-features li {
        font-size: 0.85rem;
        padding: 0.6rem 0.75rem;
    }

    /* Ensure input stays visible on mobile */
    .agent-only-modal .agent-input-container input {
        font-size: 1rem;
        padding: 0.75rem 1rem;
    }

    .agent-only-modal .agent-send-btn {
        padding: 0.75rem 1rem;
        min-width: 45px;
    }
}

/* ================================
   Project Pipeline Section
   ================================ */

.pipeline {
    padding: 80px 20px;
    background: linear-gradient(135deg, #ffffff 0%, #F7F9FB 100%);
}

.pipeline-subtitle {
    text-align: center;
    color: #64748B;
    font-size: 1.1rem;
    margin-top: -2rem;
    margin-bottom: 3rem;
    font-weight: 300;
}

.pipeline-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

.pipeline-stage {
    flex: 1;
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.01);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.pipeline-stage:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.15);
}

.stage-number {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
    color: #2563EB;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.stage-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563EB;
    transition: all 0.3s ease;
}

.pipeline-stage:hover .stage-icon {
    background: linear-gradient(135deg, #2563EB 0%, #1d4ed8 100%);
    color: #ffffff;
    transform: scale(1.1);
}

.stage-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1E293B;
    margin-bottom: 1rem;
}

.stage-description {
    font-size: 0.95rem;
    color: #64748B;
    line-height: 1.6;
}

.pipeline-arrow {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.pipeline-arrow:hover {
    opacity: 1;
}

/* ================================
   Business Areas Section
   ================================ */

.business-areas {
    padding: 80px 20px;
    background-color: #ffffff;
}

.areas-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
}

.area-tag {
    display: inline-block;
    background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
    color: #2563EB;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: transform 0.2s ease, background 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.area-tag:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #2563EB 0%, #1d4ed8 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

/* ================================
   Power BI Dashboard Modal
   ================================ */

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    background-color: #ffffff;
    margin: 2% auto;
    padding: 0;
    border-radius: 16px;
    width: 95%;
    max-width: 1800px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2.5rem;
    border-bottom: 2px solid #E2E8F0;
    background: linear-gradient(135deg, #ffffff 0%, #F7F9FB 100%);
    flex-shrink: 0;
}

.modal-header-left {
    flex: 1;
}

.modal-header h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1E293B;
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.5px;
}

.modal-subtitle {
    font-size: 0.95rem;
    color: #64748B;
    margin: 0;
    font-weight: 400;
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 1.75rem;
    font-weight: 300;
    color: #64748B;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.2s ease;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    flex-shrink: 0;
}

.modal-close:hover {
    color: #1E293B;
    background: #F7F9FB;
    transform: scale(1.1);
}

.modal-close:focus-visible {
    outline: 3px solid #2563EB;
    outline-offset: 2px;
    border-radius: 4px;
}

.dashboard-only-modal .modal-close {
    width: 32px;
    height: 32px;
    font-size: 1.5rem;
}

.modal-body {
    padding: 0;
    flex: 1;
    overflow: hidden;
}

.modal-split {
    display: flex;
    flex: 1;
    min-height: 0;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #F1F5F9;
    overflow: hidden;
}

.modal-dashboard {
    flex: 2;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.dashboard-header {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #2563EB 0%, #1d4ed8 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    min-height: 40px;
}

/* Responsividade do dashboard header */
@media (max-width: 768px) {
    .dashboard-header {
        padding: 0.5rem 0.75rem;
        flex-wrap: wrap;
        gap: 0.5rem;
        min-height: 36px;
    }

    .dashboard-label {
        font-size: 0.75rem;
    }

    .powerbi-link-btn {
        width: 100%;
        justify-content: center;
        padding: 0.4rem 0.6rem;
        font-size: 0.7rem;
    }
}

.dashboard-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.85rem;
}

.dashboard-label svg {
    stroke: #ffffff;
    width: 16px;
    height: 16px;
}

.powerbi-link-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.powerbi-link-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

.powerbi-link-btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.modal-dashboard iframe {
    width: 100%;
    flex: 1;
    border: none;
}

.modal-agent {
    flex: 1;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    min-height: 0;
}

.agent-header {
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #2563EB 0%, #1d4ed8 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.agent-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
}

.agent-label svg {
    fill: #ffffff;
    stroke: #ffffff;
}

.agent-chat-container {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    background: #F7F9FB;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.agent-welcome {
    background: linear-gradient(135deg, #ffffff 0%, #F8FAFC 100%);
    border-radius: 16px;
    padding: 3rem 2.5rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border: 2px solid #E2E8F0;
}

.agent-welcome-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: fadeInBounce 0.6s ease-out;
}

@keyframes fadeInBounce {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.agent-welcome h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1E293B;
    margin-bottom: 1rem;
    letter-spacing: -0.3px;
}

.agent-welcome p {
    color: #64748B;
    margin-bottom: 2rem;
    font-size: 1.05rem;
    line-height: 1.6;
}

.agent-features {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    display: inline-block;
    width: 100%;
    max-width: 400px;
}

.agent-features li {
    padding: 0.75rem 1rem;
    color: #475569;
    font-size: 0.95rem;
    background: #F8FAFC;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    border-left: 3px solid #2563EB;
    transition: all 0.3s ease;
}

.agent-features li:hover {
    background: #EFF6FF;
    border-left-color: #2563EB;
    transform: translateX(4px);
}

/* Email Gate Styles */
.agent-email-gate {
    background: #ffffff;
    border-radius: 16px;
    padding: 3rem 2.5rem;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    max-width: 480px;
    margin: auto;
    border: 2px solid #E2E8F0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.email-gate-icon {
    font-size: 3.5rem;
    margin-bottom: 1.25rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.agent-email-gate h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1E293B;
    margin-bottom: 0.875rem;
    letter-spacing: -0.3px;
}

.agent-email-gate p {
    color: #64748B;
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.6;
}

.email-gate-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.email-input {
    padding: 1rem 1.5rem;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    width: 100%;
    background: #F8FAFC;
}

.email-input:focus {
    outline: none;
    border-color: #2563EB;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.email-input:focus-visible {
    outline: 3px solid #2563EB;
    outline-offset: 2px;
    border-radius: 4px;
}

input:focus-visible,
textarea:focus-visible {
    outline: 3px solid #2563EB;
    outline-offset: 2px;
    border-radius: 4px;
}

.email-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #2563EB 0%, #1d4ed8 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.email-submit-btn:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.email-submit-btn:active {
    transform: translateY(0);
}

.email-submit-btn:disabled {
    background: #CBD5E1;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.email-gate-note {
    font-size: 0.8rem;
    color: #94A3B8;
    margin-top: 0.75rem;
    font-style: italic;
}

.agent-input-container {
    display: flex;
    gap: 1rem;
    padding: 1.5rem 2rem;
    background: #ffffff;
    border-top: 2px solid #E2E8F0;
    align-items: center;
    flex-shrink: 0;
}

.agent-input-container input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #F8FAFC;
}

.agent-input-container input:focus {
    outline: none;
    border-color: #2563EB;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.agent-input-container input::placeholder {
    color: #94A3B8;
}

.agent-send-btn {
    padding: 1rem 1.75rem;
    background: linear-gradient(135deg, #2563EB 0%, #1d4ed8 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    min-width: 60px;
}

.agent-send-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.agent-send-btn:active:not(:disabled) {
    transform: translateY(0);
}

.agent-send-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.agent-send-btn svg {
    stroke: #ffffff;
    width: 22px;
    height: 22px;
}

/* Agent Chat Messages */
.agent-message {
    margin-bottom: 1.25rem;
    display: flex;
    animation: messageSlideIn 0.3s ease;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.agent-message-user {
    justify-content: flex-end;
}

.agent-message-agent {
    justify-content: flex-start;
}

.agent-message-content {
    max-width: 85%;
    padding: 1rem 1.5rem;
    border-radius: 16px;
    font-size: 0.95rem;
    line-height: 1.6;
    word-wrap: break-word;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.agent-message-user .agent-message-content {
    background: linear-gradient(135deg, #2563EB 0%, #1d4ed8 100%);
    color: #ffffff;
    border-bottom-right-radius: 6px;
}

.agent-message-agent .agent-message-content {
    background: #ffffff;
    color: #1E293B;
    border: 2px solid #E2E8F0;
    border-bottom-left-radius: 6px;
}

.agent-message-content h4 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0.75rem 0;
    color: #2563EB;
}

.agent-message-content strong {
    font-weight: 600;
    color: #2563EB;
}

/* Agent Menu Buttons */
.agent-menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #E2E8F0;
}

.agent-option-btn {
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
    color: #1E293B;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.agent-option-btn::before {
    content: '→';
    position: absolute;
    right: 1.25rem;
    opacity: 0;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    font-weight: 600;
}

.agent-option-btn:hover {
    background: linear-gradient(135deg, #2563EB 0%, #1d4ed8 100%);
    color: #ffffff;
    border-color: #2563EB;
    transform: translateX(8px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.agent-option-btn:hover::before {
    opacity: 1;
    right: 1rem;
}

.agent-option-btn:active {
    transform: translateX(6px);
}

/* Agent Loading Animation */
.agent-loading {
    display: flex;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
}

.agent-loading span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2563EB;
    animation: agentLoadingBounce 1.4s infinite ease-in-out both;
}

.agent-loading span:nth-child(1) {
    animation-delay: -0.32s;
}

.agent-loading span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes agentLoadingBounce {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ================================
   Agent Visualization Styles
   ================================ */

/* Visualization Container */
.visualization-container {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #E2E8F0;
    position: relative;
}

/* KPI Card */
.kpi-card {
    background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
    color: #ffffff;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.kpi-value {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.kpi-label {
    font-size: 0.875rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Chart Canvas */
.chart-canvas {
    max-width: 100%;
    max-height: 250px;
    margin: 1rem 0;
}

/* Data Table */
.table-wrapper {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #E2E8F0;
}

.table-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1E293B;
    margin-bottom: 0.75rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.data-table thead {
    background: #F7F9FB;
}

.data-table th {
    padding: 0.6rem 0.75rem;
    text-align: left;
    font-weight: 600;
    color: #64748B;
    border-bottom: 2px solid #E2E8F0;
    white-space: nowrap;
}

.data-table td {
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid #E2E8F0;
    color: #1E293B;
}

.data-table tbody tr:hover {
    background: #F7F9FB;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* Ranked List */
.list-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1E293B;
    margin-bottom: 0.75rem;
}

.ranked-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ranked-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    background: #F7F9FB;
    border-radius: 8px;
    border: 1px solid #E2E8F0;
}

.ranked-item .rank {
    width: 24px;
    height: 24px;
    background: #2563EB;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.ranked-item .item-label {
    flex: 1;
    font-weight: 500;
    color: #1E293B;
    font-size: 0.85rem;
}

.ranked-item .item-value {
    font-weight: 600;
    color: #2563EB;
    font-size: 0.85rem;
}

/* Expand Button */
.expand-button {
    position: absolute;
    top: 1rem;
    right: 0;
    background: #ffffff;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    padding: 0.35rem;
    cursor: pointer;
    color: #64748B;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.expand-button:hover {
    background: #2563EB;
    border-color: #2563EB;
    color: #ffffff;
    transform: scale(1.05);
}

.expand-button svg {
    width: 14px;
    height: 14px;
}

/* Expand Modal */
.expand-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 24, 39, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    animation: fadeIn 0.2s ease-out;
    padding: 20px;
}

.expand-modal-content {
    background: #ffffff;
    border-radius: 16px;
    width: 95%;
    max-width: 1000px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    animation: slideDown 0.2s ease-out;
    overflow: hidden;
}

.expand-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #E2E8F0;
    background: #F7F9FB;
}

.expand-modal-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1E293B;
}

.expand-close-button {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    color: #64748B;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.expand-close-button:hover {
    background: #E2E8F0;
    color: #1E293B;
}

.expand-close-button svg {
    width: 20px;
    height: 20px;
}

.expand-modal-body {
    flex: 1;
    padding: 1.5rem;
    overflow: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Expanded Chart */
.expand-modal-body .chart-canvas {
    max-width: 100%;
    max-height: calc(90vh - 150px);
    width: 100%;
    height: auto;
}

/* Expanded Table */
.expand-modal-body .table-wrapper {
    width: 100%;
    max-height: calc(90vh - 150px);
    overflow: auto;
}

.expand-modal-body .data-table {
    font-size: 0.9rem;
}

.expand-modal-body .data-table th,
.expand-modal-body .data-table td {
    padding: 0.75rem 1rem;
}

/* Responsive Visualization Styles */
@media (max-width: 768px) {
    .kpi-value {
        font-size: 1.5rem;
    }

    .chart-canvas {
        max-height: 150px;
    }

    .data-table {
        font-size: 0.75rem;
    }

    .data-table th,
    .data-table td {
        padding: 0.5rem;
    }

    .expand-modal {
        padding: 10px;
    }

    .expand-modal-content {
        width: 100%;
        max-height: 95vh;
        border-radius: 12px;
    }

    .expand-modal-header {
        padding: 0.75rem 1rem;
    }

    .expand-modal-title {
        font-size: 1rem;
    }

    .expand-modal-body {
        padding: 1rem;
    }

    .expand-modal-body .kpi-value {
        font-size: 2.5rem !important;
    }
}

/* Modal Footer */
.modal-footer {
    padding: 2rem 2.5rem;
    background: #F8FAFC;
    border-top: 2px solid #E2E8F0;
    border-radius: 0 0 16px 16px;
    flex-shrink: 0;
}

.project-description-full h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1E293B;
    margin-bottom: 1rem;
}

.project-description-full p {
    color: #475569;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.tech-stack-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tech-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
    color: #2563EB;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(37, 99, 235, 0.2);
    transition: all 0.2s ease;
}

.tech-tag:hover {
    background: linear-gradient(135deg, #2563EB 0%, #1d4ed8 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* ================================
   Footer
   ================================ */

.footer {
    background-color: #1E293B;
    color: #E2E8F0;
    padding: 2rem 20px;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-icons {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.footer-icon {
    color: #E2E8F0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-icon:hover {
    color: #2563EB;
    transform: translateY(-2px);
}

.footer p {
    font-size: 0.9rem;
    font-weight: 300;
}

/* ================================
   Responsive Design - Tablet
   ================================ */

@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

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

    .welcome-message {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }
}

/* ================================
   Responsive Design - Mobile
   ================================ */

@media (max-width: 768px) {
    .nav-container {
        justify-content: center;
    }

    .nav-menu {
        gap: 0.5rem;
    }

    .nav-link {
        padding: 0.4rem 0.75rem;
        font-size: 0.85rem;
    }

    /* Show only initials "EO" on mobile to maintain brand presence */
    .nav-logo {
        font-size: 0;
        padding: 0.4rem 0.5rem;
    }

    .nav-logo::before {
        content: "EO";
        font-size: 1rem;
        font-weight: 700;
        color: #2563EB;
    }

    .lang-toggle {
        margin-left: 0.5rem;
    }

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

    /* Modal responsive styles */
    .modal-content {
        width: 98%;
        margin: 1% auto;
        max-height: 98vh;
    }

    .modal-header {
        padding: 1.25rem 1.5rem;
    }

    .modal-header h3 {
        font-size: 1.3rem;
    }

    .modal-subtitle {
        font-size: 0.85rem;
    }

    .modal-split {
        flex-direction: column;
        flex: 1;
        min-height: 0;
        gap: 1rem;
        padding: 1rem;
    }

    .modal-dashboard {
        flex: 1;
        min-height: 300px;
        max-height: 40vh;
    }

    .dashboard-header,
    .agent-header {
        padding: 0.75rem 1rem;
        flex-wrap: wrap;
    }

    .dashboard-label,
    .agent-label {
        font-size: 0.85rem;
    }

    .powerbi-link-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
        width: 100%;
        margin-top: 0.5rem;
        justify-content: center;
    }

    .powerbi-link-btn svg {
        width: 14px;
        height: 14px;
    }

    .modal-agent {
        flex: 1;
        min-height: 350px;
        max-height: 45vh;
        border-radius: 0;
        display: flex !important;
    }

    .agent-welcome {
        padding: 1.5rem;
    }

    .agent-welcome h4 {
        font-size: 1.1rem;
    }

    .agent-welcome p {
        font-size: 0.85rem;
    }

    .agent-features li {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }

    .agent-email-gate {
        padding: 2rem 1.5rem;
        max-width: 100%;
    }

    .agent-email-gate h4 {
        font-size: 1.2rem;
    }

    .agent-email-gate p {
        font-size: 0.9rem;
    }

    .agent-input-container {
        padding: 0.75rem 1rem;
        gap: 0.75rem;
    }

    .agent-input-container input {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .agent-send-btn {
        padding: 0.75rem 1rem;
        min-width: 48px;
    }

    .agent-send-btn svg {
        width: 20px;
        height: 20px;
    }

    .agent-menu-buttons {
        gap: 0.5rem;
    }

    .agent-option-btn {
        padding: 1rem 1.25rem;
        font-size: 0.85rem;
    }

    .modal-footer {
        padding: 1.5rem;
    }

    .project-description-full h4 {
        font-size: 1.1rem;
    }

    .project-description-full p {
        font-size: 0.85rem;
    }

    .tech-tag {
        font-size: 0.75rem;
        padding: 0.4rem 0.75rem;
    }

    .pipeline-flow {
        flex-direction: column;
        gap: 1rem;
    }

    .pipeline-arrow {
        transform: rotate(90deg);
    }

    .pipeline-stage {
        padding: 1.5rem 1.25rem;
    }

    .stage-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }

    .stage-title {
        font-size: 1.15rem;
    }

    .stage-description {
        font-size: 0.9rem;
    }

    .pipeline-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .welcome-message {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .profile-photo {
        width: 150px;
        height: 150px;
    }

    .scroll-indicator {
        margin-top: 2rem;
    }

    .scroll-text {
        font-size: 0.85rem;
    }

    .tech-word {
        font-size: 1.5rem;
        opacity: 0.03;
    }

    .tech-word:nth-child(odd) {
        font-size: 1.8rem;
        opacity: 0.04;
    }

    .tech-word:nth-child(3n) {
        font-size: 1.3rem;
        opacity: 0.02;
    }

    .portfolio {
        padding: 60px 20px;
    }

    .business-areas {
        padding: 60px 20px;
    }

    .areas-grid {
        gap: 0.75rem;
    }

    .area-tag {
        font-size: 0.85rem;
        padding: 0.6rem 1.2rem;
    }

    .project-title {
        font-size: 1.2rem;
    }

    .project-description {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .welcome-message {
        font-size: 1.75rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .profile-photo {
        width: 130px;
        height: 130px;
    }

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

    .project-info {
        padding: 1.25rem;
    }

    .btn-primary {
        padding: 0.65rem 1.25rem;
        font-size: 0.9rem;
    }

    .btn-secondary {
        padding: 0.65rem 1.25rem;
        font-size: 0.85rem;
    }

    .project-buttons {
        gap: 0.5rem;
    }
}

/* ================================
   Print Styles
   ================================ */

@media print {
    .hero {
        min-height: auto;
        page-break-after: always;
    }

    .project-card {
        page-break-inside: avoid;
    }

    .btn-primary {
        display: none;
    }
}


