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

:root {
    --primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent: #10b981;
    --dark: #0f172a;
    --dark-2: #1e293b;
    --glass: rgba(255,255,255,0.1);
    --text: #f8fafc;
    --text-2: #94a3b8;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--dark);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
}

/* PARTICLES CANVAS */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.3;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.nav-menu a {
    color: var(--text-2);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--text);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text);
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -5px);
}

/* HERO SECTION */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 2rem;
    max-width: 1200px;
    margin: 0 auto;
    gap: 4rem;
}

.hero-content {
    flex: 1;
}

.hero-badge {
    background: var(--glass);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.gradient-text {
    background: var(--primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.typing {
    border-right: 3px solid var(--accent);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { border-color: var(--accent); }
    51%, 100% { border-color: transparent; }
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-2);
    margin-bottom: 3rem;
    max-width: 500px;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-bottom: 3rem;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 25px 50px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--glass);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--glass);
    transform: translateY(-2px);
}

/* DASHBOARD MOCKUP COMPLETO */
.hero-mockup {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dashboard-mockup {
    width: 420px;
    height: 340px;
    background: linear-gradient(145deg, #1e293b, #334155);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 40px 80px rgba(0,0,0,0.5);
    position: relative;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.chart-placeholder {
    height: 120px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    font-size: 0.9rem;
}

.chart-placeholder::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(90deg, #10b981, #34d399);
    animation: chartGrow 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    border-radius: 0 0 12px 12px;
}

.chart-placeholder::after {
    content: '⚡ 80% + Eficiência em BI';
    position: absolute;
    z-index: 2;
    animation: fadeInOut 3s infinite;
}

@keyframes chartGrow {
    0% { height: 0%; }
    50% { height: 70%; }
    100% { height: 35%; }
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.data-viz {
    height: 50px;
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    border-radius: 12px;
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
}

.data-viz::before {
    content: '📉 85% ↓ Redução de Custos';
    animation: pulse 2s infinite;
}

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

.kpi-grid {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.kpi-item {
    flex: 1;
    text-align: center;
    padding: 0.8rem;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.kpi-number {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: #10b981;
    margin-bottom: 0.2rem;
}

/* CONTAINER */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* SECTION TITLE */
.section-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4rem;
    background: var(--primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ABOUT TIMELINE */
.about {
    padding: 120px 0;
    background: rgba(30, 41, 59, 0.5);
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: 2rem;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 2rem;
}

.timeline-dot {
    width: 20px;
    height: 20px;
    background: var(--glass);
    border-radius: 50%;
    position: absolute;
    left: 50%;
    top: 20px;
    transform: translateX(-50%);
    transition: background 0.3s;
    z-index: 2;
}

.timeline-content {
    background: rgba(30, 41, 59, 0.8);
    padding: 2rem;
    border-radius: 20px;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    flex: 1;
    position: relative;
}

.timeline-content h3 {
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.timeline-content span {
    color: var(--text-2);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 1rem;
}

/* SKILLS */
.skills {
    padding: 120px 0;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.skill-card {
    background: rgba(30, 41, 59, 0.5);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    cursor: pointer;
    perspective: 1000px;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}

.skill-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.skill-bar {
    height: 8px;
    background: var(--glass);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 1rem;
}

.skill-progress {
    height: 100%;
    background: var(--accent);
    border-radius: 4px;
    width: 0%;
    transition: width 2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* PROJETOS */
.projects {
    padding: 120px 0;
    background: rgba(30, 41, 59, 0.5);
}

.projects-carousel {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s ease;
}

.project-card {
    flex: 0 0 400px;
    background: rgba(30, 41, 59, 0.8);
    border-radius: 24px;
    overflow: hidden;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    perspective: 1000px;
}

.project-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 40px 80px rgba(0,0,0,0.5);
}

.project-image {
    height: 220px;
    position: relative;
    overflow: hidden;
    background: #f8fafc;
    border-radius: 16px 16px 0 0;
    cursor: pointer;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    color: white;
    padding: 1.5rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.4s ease-out;
}

.project-card:hover .project-overlay {
    transform: translateY(0);
}

.project-overlay .project-icon {
    font-size: 2.5rem;
    margin-bottom: 0.3rem;
    display: block;
}

.project-overlay span {
    font-size: 1rem;
    font-weight: 700;
    display: block;
}

.project-content {
    padding: 2rem;
}

.project-content h3 {
    margin-bottom: 1rem;
    color: var(--accent);
}

.project-tech {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.project-tech span {
    background: var(--glass);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

.project-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.project-links .link {
    color: var(--text-2);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.project-links .link:hover {
    color: var(--accent);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--glass);
    border: none;
    color: var(--text);
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    backdrop-filter: blur(20px);
    transition: all 0.3s;
}

.carousel-btn:hover {
    background: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

.prev { left: -30px; }
.next { right: -30px; }

/* CONTATO */
.contact {
    padding: 120px 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.contact-item a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: var(--accent);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1.2rem;
    border: 2px solid var(--glass);
    background: rgba(30, 41, 59, 0.6);
    border-radius: 16px;
    color: var(--text);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
    backdrop-filter: blur(20px);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-2);
}

.btn-primary.full {
    width: 100%;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

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

/* SCROLL TOP */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--primary);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.4);
    transition: all 0.3s;
    z-index: 1000;
    opacity: 0;
}

/* MODAL - ISOLADO (adicione no FINAL do style.css) */
.modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    pointer-events: none;
}

.modal-container.active {
    pointer-events: all;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s;
}

.modal-container.active .modal-overlay {
    opacity: 1;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: white;
    border-radius: 24px;
    max-width: 95vw;
    max-height: 90vh;
    width: 1200px;
    height: 750px;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    box-shadow: 0 50px 100px rgba(0,0,0,0.3);
}

.modal-container.active .modal-content {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.modal-header {
    padding: 2rem 2.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 10;
}

.modal-header h3 {
    margin: 0;
    color: #1e293b;
    font-size: 1.6rem;
    font-weight: 700;
}

.modal-close {
    background: #f1f5f9;
    border: 2px solid #e2e8f0;
    color: #64748b;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    flex-shrink: 0;
    position: relative;
    z-index: 20;
}

.modal-close:hover {
    background: #fee2e2;
    border-color: #fecaca;
    color: #dc2626;
    transform: scale(1.1);
}

.modal-body {
    height: calc(100% - 90px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-description {
    padding: 2rem 2.5rem;
    max-height: 220px;
    overflow-y: auto;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.95rem;
    line-height: 1.7;
}

.modal-description strong {
    color: #1e293b;
}

.iframe-container {
    flex: 1;
    position: relative;
    background: #f8f9fa;
}

.iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0 0 24px 24px;
}

/* RESPONSIVO */
@media (max-width: 768px) {
    .modal-content {
        width: 98vw;
        height: 92vh;
        border-radius: 16px;
        margin: 0;
    }
    
    .modal-header {
        padding: 1.5rem 1.5rem 1.5rem 2rem;
    }
    
    .modal-description {
        padding: 1.5rem;
        max-height: 180px;
        font-size: 0.9rem;
    }
    
    .modal-header h3 {
        font-size: 1.3rem;
    }


}

/* =========================================
   ESTILOS DA PÁGINA DE DETALHES DO PROJETO 
   ========================================= */
.detail-page {
    padding-top: 100px;
}

.project-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.project-header-info {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(20px);
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid var(--glass);
}

.project-header-info h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

#detail-description {
    font-size: 1.1rem;
    color: var(--text-2);
    margin-top: 1.5rem;
    width: 100%; /* Preenche todo o espaço disponível */
    text-align: justify; /* Opcional: deixa o texto alinhado retinho nas duas bordas */
}

.iframe-wrapper {
    width: 100%;
    height: 70vh;
    min-height: 600px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    background: #1e293b;
    border: 1px solid var(--glass);
}

.iframe-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Lista de outros projetos */
.other-projects {
    margin-top: 3rem;
}

.other-projects h2 {
    margin-bottom: 2rem;
    font-size: 2rem;
}

.other-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.other-project-card {
    background: rgba(30, 41, 59, 0.5);
    padding: 1.5rem;
    border-radius: 16px;
    text-decoration: none;
    color: var(--text);
    border: 1px solid var(--glass);
    transition: all 0.3s;
}

.other-project-card:hover {
    transform: translateY(-5px);
    background: rgba(30, 41, 59, 0.9);
    border-color: var(--accent);
}

.other-project-card h3 {
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.other-project-card p {
    color: var(--text-2);
    font-size: 0.85rem;
}

/* Atualização dos cards de outros projetos */
.other-project-card {
    background: rgba(30, 41, 59, 0.5);
    border-radius: 16px;
    text-decoration: none;
    color: var(--text);
    border: 1px solid var(--glass);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Importante para a imagem não vazar das bordas arredondadas */
}

.other-project-card:hover {
    transform: translateY(-5px);
    background: rgba(30, 41, 59, 0.9);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.other-project-image {
    width: 100%;
    height: 150px;
    overflow: hidden;
}

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

.other-project-card:hover .other-project-image img {
    transform: scale(1.05); /* Efeito de zoom suave na imagem ao passar o mouse */
}

.other-project-content {
    padding: 1.5rem;
}

.other-project-content h3 {
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.other-project-content p {
    color: var(--text-2);
    font-size: 0.85rem;
}