﻿/* Variáveis do tema */
:root {
    --primary: #2B8A9C;
    --secondary: #1E606D;
    --background: #121416;
    --card-bg: #1A1D20;
    --card-bg-hover: #22262A;
    --text-primary: #FFFFFF;
    --text-secondary: #9BA1A6;
    --accent: #30B8D3;
    --spacing: clamp(20px, 4vw, 40px);
    --border-color: rgba(48, 184, 211, 0.2);
}

/* Reset e Estilos Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

html, body {
    overflow-x: hidden;
    background-color: var(--background);
    color: var(--text-primary);
}

body {
    min-height: 100vh;
    padding: var(--spacing);
}

/* Animações Globais */
@keyframes fadeInSplash {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeOutSplash {
    0% {
        opacity: 1;
        visibility: visible;
    }

    99% {
        opacity: 0;
        visibility: visible;
    }

    100% {
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Splash Screen */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeOutSplash 0.5s ease-out forwards;
    animation-delay: 4s;
}

.splash-content {
    text-align: center;
    color: var(--text-primary);
    padding: 20px;
    max-width: 90%;
    animation: fadeInSplash 0.8s ease-out forwards;
}

.splash-logo {
    max-width: 300px;
    margin: 0 auto 30px;
    opacity: 0;
    animation: fadeInSplash 1s ease-out forwards;
}

    .splash-logo img {
        width: 100%;
        height: auto;
    }

.splash-text {
    font-size: clamp(1.2em, 3vw, 1.6em);
    line-height: 1.6;
    margin: 0;
    opacity: 0;
    animation: fadeInSplash 0.5s ease-out forwards 1s;
}

/* Container Principal */
.main-wrapper {
    opacity: 0;
    animation: fadeInScale 1s ease-out forwards 4.2s;
}

.card {
    background: var(--card-bg);
    width: 100%;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    max-width: 1400px;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: var(--spacing);
    text-align: center;
}

.logo-container {
    max-width: 200px;
    margin: 0 auto 20px;
    transition: transform 0.3s ease;
}

    .logo-container:hover {
        transform: scale(1.05);
    }

    .logo-container img {
        width: 100%;
        height: auto;
    }

.tagline {
    font-size: clamp(1em, 3vw, 1.2em);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    opacity: 0.9;
}

/* Conteúdo Principal */
.main-content {
    padding: var(--spacing);
    max-width: 1400px;
    margin: 0 auto;
}

/* Títulos de Seção */
.section-title {
    color: var(--accent);
    font-size: clamp(1.5em, 4vw, 1.8em);
    margin-bottom: var(--spacing);
    text-align: center;
    position: relative;
}

    .section-title::after {
        content: "";
        display: block;
        width: 60px;
        height: 3px;
        background: var(--accent);
        margin: 10px auto;
    }

/* Web Development Section */
.web-dev-section {
    margin-bottom: 3rem;
}

/* Portfólio Showcase */
.portfolio-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.portfolio-item {
    background: var(--card-bg-hover);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

    .portfolio-item:hover {
        border-color: var(--accent);
        box-shadow: 0 8px 24px rgba(48, 184, 211, 0.1);
    }

.portfolio-wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.portfolio-image-wrap {
    position: relative;
    width: 100%;
    transition: all 0.5s ease;
    overflow: hidden;
    cursor: pointer;
}

    .portfolio-image-wrap.collapsed {
        height: 180px;
    }

        .portfolio-image-wrap.collapsed::after {
            content: "";
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 40px;
            background: linear-gradient(to bottom, rgba(34, 38, 42, 0), rgba(34, 38, 42, 0.8));
            pointer-events: none;
            z-index: 1;
        }

    .portfolio-image-wrap.expanded {
        height: auto;
        max-height: 800px; /* Valor aumentado para mostrar mais da imagem em telas maiores */
    }

    .portfolio-image-wrap img {
        width: 100%;
        height: auto;
        display: block;
        transition: transform 0.5s ease;
    }

.portfolio-item:hover .portfolio-image-wrap.collapsed img {
    transform: scale(1.05);
}

/* Indicador de expandir/recolher */
.indicator-bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    gap: 8px;
    z-index: 2;
    pointer-events: none; /* Isso permite que cliques passem através do indicador */
}

.portfolio-image-wrap:hover .indicator-bar {
    opacity: 1;
}

.expand-icon {
    font-size: 14px;
    display: inline-block;
    transition: transform 0.3s ease;
}

    .expand-icon.rotated {
        transform: rotate(180deg);
    }

.expand-text {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.portfolio-image-wrap.expanded .indicator-bar {
    position: sticky;
    bottom: 0;
}

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

.portfolio-title {
    color: var(--accent);
    font-size: 1.2em;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.portfolio-description {
    color: var(--text-secondary);
    font-size: 0.9em;
    margin-bottom: 0.5rem;
    flex-grow: 1;
}

.portfolio-link {
    display: inline-block;
    color: var(--accent);
    text-decoration: none;
    font-size: 0.9em;
    transition: all 0.3s ease;
    margin-top: auto;
    position: relative;
    z-index: 10; /* Garante que o link fique acima de outros elementos */
}

    .portfolio-link:hover {
        text-decoration: underline;
    }

/* Tabela de Preços */
.pricing-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

    .pricing-table th,
    .pricing-table td {
        padding: 1rem;
        text-align: left;
        border-bottom: 1px solid var(--border-color);
    }

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

    .pricing-table th {
        background-color: rgba(48, 184, 211, 0.1);
        color: var(--accent);
        font-weight: 600;
    }

    .pricing-table tr:hover td {
        background-color: rgba(48, 184, 211, 0.05);
    }

.pricing-example {
    font-size: 0.85em;
    color: var(--text-secondary);
    display: block;
    margin-top: 0.25rem;
}

    .pricing-example a {
        color: var(--accent);
        text-decoration: none;
        transition: all 0.3s ease;
    }

        .pricing-example a:hover {
            text-decoration: underline;
        }

.pricing-price {
    font-weight: 600;
    color: var(--text-primary);
}

/* Prazo Entrega Section */
.timeline-section {
    background: var(--card-bg-hover);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.timeline-title {
    color: var(--accent);
    font-size: 1.3em;
    margin-bottom: 1rem;
}

.timeline-info {
    color: var(--text-secondary);
    font-size: 0.95em;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.timeline-note {
    background: rgba(48, 184, 211, 0.05);
    border-left: 3px solid var(--accent);
    padding: 1rem;
    margin-top: 1rem;
    color: var(--text-secondary);
    font-size: 0.9em;
    line-height: 1.5;
}

/* Seção de Contato */
.contact-section {
    padding: var(--spacing) 0;
    text-align: center;
    margin-bottom: 2rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: var(--spacing);
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1em;
    color: var(--text-secondary);
}

.contact-icon {
    margin-right: 0.5rem;
    font-size: 1.2em;
}

.contact-link {
    color: var(--accent);
    text-decoration: none;
    transition: all 0.3s ease;
}

    .contact-link:hover {
        text-decoration: underline;
    }

/* Seção CTA */
.cta-section {
    background: var(--primary);
    padding: var(--spacing);
    text-align: center;
    border-radius: 12px;
    margin-top: var(--spacing);
}

.cta-title {
    font-size: clamp(1.5em, 4vw, 2em);
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.cta-text {
    font-size: 1em;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.cta-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--accent);
    color: var(--text-primary);
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.3s ease;
}

    .cta-button:hover {
        background: var(--secondary);
    }

/* Responsividade */
@media (max-width: 768px) {
    .portfolio-showcase {
        grid-template-columns: 1fr;
    }

    .pricing-table {
        font-size: 0.9em;
    }

        .pricing-table th,
        .pricing-table td {
            padding: 0.75rem;
        }

    .portfolio-image-wrap.expanded {
        max-height: none; /* Remove a limitação de altura para telas menores */
    }
}

@media (max-width: 480px) {
    .pricing-table {
        font-size: 0.8em;
    }

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

    .portfolio-image-wrap.expanded {
        max-height: none; /* Sem limitação de altura em celulares */
    }

    .expand-text {
        font-size: 10px;
    }

    .indicator-bar {
        padding: 6px 0;
    }
}