/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #020617;
    --bg-elevated: #020617;
    --bg-elevated-soft: #020617;
    --header-gradient-start: #020617;
    --header-gradient-end: #0f172a;
    --primary-color: #38bdf8;
    --secondary-color: #6366f1;
    --accent-color: #f97316;
    --text-color: #e5e7eb;
    --text-muted: #9ca3af;
    --border-subtle: rgba(148, 163, 184, 0.35);
    --white: #f9fafb;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.85);
    --shadow-hover: 0 24px 60px rgba(15, 23, 42, 0.96);
    --border-radius: 14px;
    --transition: all 0.25s ease;
}

body {
    font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: radial-gradient(circle at top, #0b1120 0, #020617 55%, #000000 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: linear-gradient(90deg, var(--header-gradient-start), var(--header-gradient-end));
    color: var(--white);
    padding: 0.85rem 0;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.85);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    filter: drop-shadow(0 0 14px rgba(56, 189, 248, 0.7));
}

.logo h1 {
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav a {
    color: rgba(226, 232, 240, 0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: var(--transition);
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
}

.nav a:hover,
.nav a.active {
    background: radial-gradient(circle at top, rgba(56, 189, 248, 0.25), rgba(37, 99, 235, 0.9));
    color: #f9fafb;
    transform: translateY(-1px);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.9);
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 0;
    display: flex;
}

.page-main {
    padding: 2rem 0;
}

.pdf-fullpage-wrapper {
    flex: 1;
    height: 100%;
    overflow: hidden;
}

.pdf-fullpage {
    width: 100%;
    height: 100%;
    border: none;
}

/* PDF Viewer - Página inicial */
.pdf-viewer-shell {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.pdf-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.4rem 1.75rem;
    background: rgba(15, 23, 42, 0.98);
    border-bottom: 1px solid var(--border-subtle);
}

.pdf-toolbar-left,
.pdf-toolbar-center,
.pdf-toolbar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pdf-filename {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.pdf-page-indicator {
    font-size: 0.85rem;
    color: var(--text-muted);
    min-width: 4rem;
    text-align: center;
}

.pdf-nav-btn {
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.95));
    color: var(--text-color);
    border-radius: 999px;
    padding: 0.25rem 0.6rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: var(--transition);
}

.pdf-nav-btn i {
    pointer-events: none;
}

.pdf-nav-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.9);
}

.pdf-canvas-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: radial-gradient(circle at top, #020617, #020617);
}

#pdf-canvas {
    display: block;
}

.pdf-loading {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
}

.pdf-loading i {
    color: var(--primary-color);
}

/* Modo apresentação fullscreen */
body.presentation-mode {
    overflow: hidden;
}

body.presentation-mode .header,
body.presentation-mode .footer {
    display: none;
}

body.presentation-mode .pdf-fullpage-wrapper {
    height: 100vh;
}

.presentation-brand {
    position: fixed;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    padding: 0.35rem 1.2rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.65);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.95);
    display: none;
}

.presentation-brand a {
    color: #e5e7eb;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.presentation-brand a:hover {
    color: var(--primary-color);
}

body.presentation-mode .presentation-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Welcome Section */
.welcome-section {
    text-align: center;
    padding: 4rem 0;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(155, 89, 182, 0.1));
    border-radius: var(--border-radius);
    margin-bottom: 3rem;
}

.welcome-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 700;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color), #2980b9);
    color: var(--white);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-outline:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.4rem;
    color: var(--white);
    margin-bottom: 0.75rem;
    letter-spacing: 0.04em;
}

.section-header p {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 620px;
    margin: 0 auto;
}

/* Contact Section */
.contact-section {
    margin: 4rem 0;
}

.contact-content {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 900px;
    width: 100%;
}

.contact-card {
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), rgba(15, 23, 42, 0.97));
    padding: 2rem;
    border-radius: 18px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: var(--transition);
    border: 1px solid var(--border-subtle);
}

.contact-card-wide {
    grid-column: 1 / -1;
}

.contact-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: var(--shadow-hover);
    border-color: rgba(56, 189, 248, 0.7);
}

.contact-icon {
    width: 64px;
    height: 64px;
    background: radial-gradient(circle at top, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.6rem;
    flex-shrink: 0;
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.9);
}

.contact-details h3 {
    color: var(--white);
    margin-bottom: 0.35rem;
    font-size: 1.2rem;
}

.contact-details p {
    color: var(--text-muted);
    font-size: 1.02rem;
}

.contact-details a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.contact-details a:hover {
    text-decoration: underline;
}

/* Download Section */
.download-section {
    margin: 4rem 0;
}

.download-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.download-card {
    background:
        radial-gradient(circle at top left, rgba(99, 102, 241, 0.2), rgba(15, 23, 42, 0.98));
    border-radius: 18px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border: 1px solid var(--border-subtle);
}

.download-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: var(--shadow-hover);
    border-color: rgba(99, 102, 241, 0.8);
}

.file-icon {
    font-size: 3rem;
    color: var(--accent-color);
    flex-shrink: 0;
}

.file-info {
    flex-grow: 1;
}

.file-info h3 {
    color: var(--white);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.file-info p {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.file-size {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
}

.download-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    text-decoration: none;
    padding: 0.75rem 1.6rem;
    border-radius: 999px;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.95);
}

.download-btn:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: var(--shadow-hover);
}

/* Footer - barra fina com copyright à esquerda e contatos à direita */
.footer {
    background-color: #020617;
    color: var(--white);
    padding: 0.35rem 0;
    margin-top: 0;
    border-top: 1px solid rgba(148, 163, 184, 0.45);
}

.footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    font-size: 0.8rem;
}

.footer-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
}

.footer-copy span {
    color: rgba(226, 232, 240, 0.95);
}

.footer-contact-group {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.15rem;
}

.footer-contact-line {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.footer-contact-line i {
    color: var(--primary-color);
    font-size: 0.85rem;
    width: 16px;
    text-align: center;
}

.footer-contact-line span {
    color: rgba(226, 232, 240, 0.95);
}

.footer-contact-line a {
    color: rgba(226, 232, 240, 0.95);
    text-decoration: none;
}

.footer-contact-line a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .nav ul {
        gap: 1rem;
    }

    .welcome-content h2 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }


    .download-card {
        flex-direction: column;
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .welcome-section {
        padding: 2rem 0;
    }

    .logo h1 {
        font-size: 1.2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.welcome-section,
.presentation-section,
.download-section {
    animation: fadeInUp 0.6s ease-out;
}

/* Scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Print styles */
@media print {
    .header,
    .footer,
    .pdf-controls {
        display: none;
    }
    
    .main-content {
        padding: 0;
    }
}
