/* 
   Site Corpo Negro - Design System & Base
   Tema: Cores profundas, incandescência, glow e variações térmicas (Vermelho -> Amarelo -> Branco/Azul)
*/

:root {
    /* Colors - Corpo Negro Spectrum */
    --bg-dark: #0a0a0f;
    --bg-darker: #050508;
    --bg-glass: rgba(20, 20, 30, 0.6);
    --border-glass: rgba(255, 255, 255, 0.08);
    
    --text-main: #f0f0f5;
    --text-muted: #a0a0b0;
    
    /* Thermal Colors */
    --thermal-red: #ff3300;
    --thermal-orange: #ff7700;
    --thermal-yellow: #ffcc00;
    --thermal-white: #ffffff;
    --thermal-blue: #99ccff;
    
    --accent: var(--thermal-orange);
    
    /* Gradients */
    --gradient-glow: linear-gradient(90deg, var(--thermal-red), var(--thermal-yellow));
    --gradient-glow-hot: linear-gradient(90deg, var(--thermal-yellow), var(--thermal-white), var(--thermal-blue));
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout */
    --max-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-darker);
    color: var(--text-main);
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 119, 0, 0.3);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 119, 0, 0.6);
}

/* Background Animations Layer */
.glow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    opacity: 0.6;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    animation: float 20s infinite ease-in-out alternate;
}

.orb-red {
    width: 400px;
    height: 400px;
    background-color: rgba(255, 51, 0, 0.15);
    top: -10%;
    right: -10%;
}

.orb-yellow {
    width: 500px;
    height: 500px;
    background-color: rgba(255, 204, 0, 0.1);
    top: 40%;
    left: -20%;
    animation-delay: -5s;
}

.orb-blue {
    width: 300px;
    height: 300px;
    background-color: rgba(153, 204, 255, 0.1);
    bottom: -10%;
    right: 20%;
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-30px, 40px) scale(1.1); }
    100% { transform: translate(40px, -20px) scale(0.9); }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

.gradient-text {
    background: var(--gradient-glow);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.highlight {
    color: var(--thermal-yellow);
}

a {
    color: var(--text-main);
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 1.5rem 2rem;
    transition: background-color 0.4s ease, padding 0.4s ease, backdrop-filter 0.4s ease;
}

.navbar.scrolled {
    background-color: rgba(5, 5, 8, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border-glass);
}

.nav-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--text-main);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-glow);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 2rem;
    position: relative;
}

.hero-content {
    max-width: 800px;
    z-index: 1;
}

.pill-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    color: var(--thermal-orange);
}

.title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--gradient-glow);
    color: var(--bg-darker);
    border: none;
    box-shadow: 0 4px 15px rgba(255, 119, 0, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(255, 119, 0, 0.5);
    background: var(--gradient-glow-hot);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border-glass);
    color: var(--text-main);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-large {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
}

/* Layout Sections */
.section {
    padding: 6rem 2rem;
    position: relative;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.dark-section {
    background-color: var(--bg-dark);
}

.glass-section {
    position: relative;
}

.section-header {
    margin-bottom: 4rem;
}

.section-header.align-center {
    text-align: center;
}

.section-header h2 {
    font-size: clamp(2rem, 3vw, 2.5rem);
    margin-bottom: 1rem;
}

.line {
    height: 3px;
    width: 60px;
    background: var(--gradient-glow);
    border-radius: 2px;
}

.line.center {
    margin: 0 auto;
}

.lead-text {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.text-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.text-content strong {
    color: var(--text-main);
}

/* Glass Panels & Cards */
.glass-panel {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 3rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Visual Placeholder for Theory */
.spectrum-visual {
    width: 100%;
    aspect-ratio: 4/3;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spectrum-visual::before {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 20%;
    width: 60%;
    height: 80%;
    background: radial-gradient(ellipse at bottom, rgba(255, 119, 0, 0.4) 0%, transparent 60%);
    filter: blur(20px);
}

.label-temp {
    position: absolute;
    top: 20px;
    right: 20px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
}

/* Thesis Section */
.thesis-card {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.thesis-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-glow);
}

.thesis-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 119, 0, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--thermal-orange);
}

.thesis-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.thesis-card p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.thesis-meta {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-glass);
}

.meta-item {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.meta-item strong {
    color: var(--text-main);
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.2rem;
}

/* Products Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.product-card {
    background: linear-gradient(180deg, rgba(20, 20, 30, 0.6) 0%, rgba(10, 10, 15, 0.6) 100%);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 2.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    backdrop-filter: blur(10px);
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 119, 0, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 119, 0, 0.1);
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--bg-darker);
}

.gradient-1 { background: linear-gradient(135deg, #ff3300, #ff7700); }
.gradient-2 { background: linear-gradient(135deg, #ff7700, #ffcc00); }
.gradient-3 { background: linear-gradient(135deg, #ffcc00, #ffffff); }

.product-card h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.product-card p {
    color: var(--text-muted);
    font-size: 1rem;
}

.cta-container {
    text-align: center;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-glass);
    padding: 4rem 2rem 2rem;
    background-color: var(--bg-darker);
    text-align: center;
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 1rem;
}

footer p {
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto 2rem;
}

.copyright {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Utilities for JS Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
    .two-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* Em um cenário real, adicionar hamburger menu */
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .section {
        padding: 4rem 1.5rem;
    }
}

/* --- Novas Seções (Dissertação, Equipe, Recursos, Contato) --- */

/* Hero Motivation */
.motivation-text {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 2.5rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    background: rgba(255, 119, 0, 0.1);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 3px solid var(--thermal-orange);
}

.visual-caption {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

/* Thesis Meta Grid */
.thesis-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-glass);
}
.thesis-meta-grid .full-width {
    grid-column: 1 / -1;
}

/* Button Text */
.btn-text {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    color: var(--thermal-orange);
    font-weight: 600;
    transition: color 0.3s;
}
.btn-text span {
    transition: transform 0.3s;
}
.btn-text:hover {
    color: var(--thermal-yellow);
}
.btn-text:hover span {
    transform: translateX(5px);
}

/* Resources Grid */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}
.resource-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    padding: 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
}
.resource-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--thermal-orange);
    transform: translateY(-3px);
}
.resource-icon {
    font-size: 2rem;
}
.resource-info h5 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: var(--text-main);
}
.resource-info span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}
.team-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 3rem 2rem;
}
.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    margin-bottom: 1.5rem;
    color: var(--bg-darker);
    background: var(--gradient-glow);
    border: 3px solid var(--text-main);
    box-shadow: 0 0 20px rgba(255,119,0,0.3);
}
.team-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}
.team-info .role {
    color: var(--thermal-yellow);
    font-weight: 500;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}
.team-email {
    color: var(--text-muted);
    font-size: 0.95rem;
    display: inline-block;
    margin-bottom: 1.2rem;
    text-decoration: none;
}
.team-email:hover {
    color: var(--text-main);
    text-decoration: underline;
}
.team-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}
.btn-social {
    padding: 0.4rem 1rem;
    border-radius: 50px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-glass);
    font-size: 0.8rem;
    transition: all 0.3s ease;
    text-decoration: none;
}
.btn-social:hover {
    background: var(--thermal-orange);
    color: var(--bg-dark);
    border-color: var(--thermal-orange);
}

/* Contact Form */
.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
}
.contact-form {
    padding: 2.5rem;
}
.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-muted);
}
.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}
.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--thermal-orange);
    background: rgba(255, 119, 0, 0.05);
}
.btn-submit {
    width: 100%;
    margin-top: 1rem;
}
.form-messages {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.95rem;
    color: var(--thermal-yellow);
    font-weight: 500;
}

/* Mobile Settings for new sections */
@media (max-width: 600px) {
    .thesis-meta-grid {
        grid-template-columns: 1fr;
    }
}
