/* ==========================================================================
   Dr. José Afonso Corrêa da Silva - Portfolio Stylesheet
   ========================================================================== */

/* --- Custom Properties (Design System) --- */
:root {
    --bg-primary: #070a13;
    --bg-secondary: #0d1326;
    --bg-card: rgba(20, 28, 54, 0.6);
    --border-color: rgba(255, 255, 255, 0.06);
    --border-glass: rgba(255, 255, 255, 0.09);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --color-emerald: #10b981;
    --color-emerald-hover: #059669;
    --color-emerald-rgb: 16, 185, 129;
    
    --color-gold: #fbbf24;
    --color-gold-hover: #f59e0b;
    --color-gold-rgb: 251, 191, 36;

    --font-heading: 'Outfit', sans-serif;
    --font-title: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
    
    --shadow-premium: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* --- Reset & Base Styles --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.25;
}

p {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

/* --- Layout Utility --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-emerald { color: var(--color-emerald); }

.text-gradient {
    background: linear-gradient(135deg, var(--color-emerald) 30%, var(--color-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-family: var(--font-body);
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-emerald) 0%, var(--color-emerald-hover) 100%);
    color: #fff;
    box-shadow: 0 10px 20px -5px rgba(var(--color-emerald-rgb), 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(var(--color-emerald-rgb), 0.45);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--color-emerald);
    color: var(--color-emerald);
}

.btn-outline:hover {
    background: var(--color-emerald);
    color: #fff;
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
}

.btn-xs {
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    border-radius: 4px;
}

.btn-outline-white {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-danger {
    background: #ef4444;
    color: #fff;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-icon {
    transition: transform var(--transition-fast);
}

.btn:hover .btn-icon {
    transform: translateX(3px);
}

/* --- Badges --- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    background: rgba(var(--color-gold-rgb), 0.08);
    border: 1px solid rgba(var(--color-gold-rgb), 0.2);
    color: var(--color-gold);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    gap: 0.5rem;
}

.badge-emerald {
    background: rgba(var(--color-emerald-rgb), 0.15);
    border: 1px solid rgba(var(--color-emerald-rgb), 0.3);
    color: var(--color-emerald);
}

/* --- Header / Navigation --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(7, 10, 19, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    font-family: var(--font-heading);
}

.logo-accent {
    color: var(--color-emerald);
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-emerald);
    transition: var(--transition-fast);
}

.nav-link.active::after, .nav-link:hover::after {
    width: 100%;
}

.mobile-nav-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
}

.mobile-nav-toggle svg {
    width: 28px;
    height: 28px;
}

/* --- Mobile Menu Overlay --- */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--bg-secondary);
    z-index: 150;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.open {
    right: 0;
}

.mobile-menu-close {
    align-self: flex-end;
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    margin-bottom: 2rem;
}

.mobile-menu-close svg {
    width: 28px;
    height: 28px;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-nav-link {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav-link:hover {
    color: var(--text-primary);
    padding-left: 5px;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    padding: 180px 0 100px;
    display: flex;
    align-items: center;
    background-color: var(--bg-primary);
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(var(--color-emerald-rgb), 0.15) 0%, rgba(7, 10, 19, 0) 70%);
    z-index: 1;
    pointer-events: none;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-title {
    font-family: var(--font-title);
    font-size: 3.5rem;
    font-weight: 600;
    line-height: 1.15;
    margin: 1.5rem 0;
}

.hero-subtitle {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

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

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 500;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.social-icon {
    width: 24px;
    height: 24px;
    background: #0077b5;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.8rem;
}

.hero-visual {
    display: flex;
    justify-content: center;
    position: relative;
}

.profile-image-container {
    position: relative;
    width: 380px;
    height: 380px;
}

.profile-frame {
    position: absolute;
    top: -15px;
    left: -15px;
    right: 15px;
    bottom: 15px;
    border: 2px solid var(--color-emerald);
    border-radius: 24px;
    z-index: 1;
    pointer-events: none;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-premium);
    background-color: var(--bg-secondary);
}

.profile-badge {
    position: absolute;
    bottom: 20px;
    left: -30px;
    z-index: 3;
    background: rgba(13, 19, 38, 0.9);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0.75rem 1.5rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--shadow-glass);
}

.profile-badge-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-emerald);
    line-height: 1;
}

.profile-badge-text {
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-primary);
}

/* --- Section Formatting --- */
section {
    padding: 100px 0;
}

.section-header {
    margin-bottom: 4rem;
}

.section-pretitle {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-emerald);
    display: block;
    margin-bottom: 0.5rem;
}

.section-title {
    font-family: var(--font-title);
    font-size: 2.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-subtitle {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-secondary);
}

.section-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-emerald) 0%, var(--color-gold) 100%);
    border-radius: 2px;
    margin: 1.5rem auto 0;
}

.section-header.text-center .section-divider {
    margin-left: auto;
    margin-right: auto;
}

/* --- About Section --- */
.about {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.about-grid {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-visual {
    display: flex;
    justify-content: center;
}

.about-image-container {
    position: relative;
    width: 100%;
    max-width: 280px;
    aspect-ratio: 2 / 3;
}

.about-image-frame {
    position: absolute;
    top: -10px;
    left: -10px;
    right: 10px;
    bottom: 10px;
    border: 2px solid var(--color-emerald);
    border-radius: 16px;
    z-index: 1;
    pointer-events: none;
}

.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-premium);
}

.lead-text {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.about-quick-stats {
    display: flex;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.stat-card {
    flex: 1;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 1.25rem 1rem;
    border-radius: 12px;
    text-align: center;
}

.stat-value {
    color: var(--color-gold);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0;
}

.about-timeline-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-card {
    display: flex;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 1.5rem;
    gap: 1.25rem;
    transition: var(--transition-smooth);
}

.about-card:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--color-emerald-rgb), 0.3);
}

.about-card-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: rgba(var(--color-emerald-rgb), 0.1);
    color: var(--color-emerald);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-card-content h4 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.about-card-content ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.about-card-content li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1rem;
}

.about-card-content li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: var(--color-emerald);
    border-radius: 50%;
}

/* --- Gallery Section --- */
.gallery {
    background-color: var(--bg-primary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.gallery-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition-smooth);
}

.gallery-card:hover {
    transform: translateY(-8px);
    border-color: rgba(var(--color-emerald-rgb), 0.4);
    box-shadow: 0 20px 40px -20px rgba(0,0,0,0.6);
}

.gallery-img-wrapper {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.gallery-card:hover .gallery-img {
    transform: scale(1.05);
}

.gallery-info {
    padding: 1.5rem;
}

.gallery-info h4 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.gallery-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.5;
}

/* --- Recognition Section --- */
.recognition {
    background-color: var(--bg-primary);
}

.recognition-container {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
    align-items: center;
}

.recognition-visual {
    display: flex;
    flex-direction: column;
}

.recognition-img-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 1.5rem;
    align-items: flex-end;
}

.rec-img-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 0.75rem;
    box-shadow: var(--shadow-premium);
    display: flex;
    flex-direction: column;
}

.rec-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
}

.rec-img-caption {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-gold);
    text-align: center;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.recognition-content {
    display: flex;
    flex-direction: column;
}

.recognition-subtitle {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.recognition-badge-award {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-top: 1.5rem;
    background: rgba(var(--color-gold-rgb), 0.06);
    border: 1px solid rgba(var(--color-gold-rgb), 0.15);
    padding: 1.25rem;
    border-radius: 16px;
}

.recognition-badge-award .award-icon {
    width: 48px;
    height: 48px;
    background: rgba(var(--color-gold-rgb), 0.12);
    color: var(--color-gold);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.recognition-badge-award h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.recognition-badge-award p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* --- Lectures Section --- */
.lectures {
    background-color: var(--bg-secondary);
}

.lectures-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.lecture-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition-smooth);
}

.lecture-card:hover {
    transform: translateY(-8px);
    border-color: rgba(var(--color-emerald-rgb), 0.4);
    box-shadow: 0 20px 40px -20px rgba(0,0,0,0.6);
}

.lecture-img-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.lecture-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.lecture-card:hover .lecture-img {
    transform: scale(1.05);
}

.lecture-card-body {
    padding: 2.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.lecture-badge {
    align-self: flex-start;
    padding: 0.35rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-emerald);
    background: rgba(var(--color-emerald-rgb), 0.08);
    border: 1px solid rgba(var(--color-emerald-rgb), 0.15);
    border-radius: 30px;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lecture-title {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.35;
}

.lecture-description {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.75rem;
}

.lecture-meta {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.25rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.meta-icon {
    color: var(--color-gold);
    display: flex;
    align-items: center;
}

.lecture-card-footer {
    padding: 0 2.25rem 2.25rem;
}

/* --- Contact Section --- */
.contact {
    background-color: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.contact-container {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
    align-items: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-title {
    font-family: var(--font-title);
    font-size: 2.75rem;
    margin: 1rem 0 1.5rem;
}

.contact-text {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.contact-detail-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.detail-icon {
    width: 48px;
    height: 48px;
    background: rgba(var(--color-emerald-rgb), 0.1);
    color: var(--color-emerald);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-detail-item h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-detail-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 2.5rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-premium);
}

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

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input, 
.form-group select, 
.form-group textarea {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: #fff;
    transition: var(--transition-fast);
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-emerald);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 3px rgba(var(--color-emerald-rgb), 0.15);
}

.form-group select option {
    background-color: var(--bg-secondary);
    color: #fff;
}

.form-group select.highlight-pulse,
.form-group input.highlight-pulse {
    border-color: var(--color-gold);
    background: rgba(var(--color-gold-rgb), 0.15) !important;
    box-shadow: 0 0 0 4px rgba(var(--color-gold-rgb), 0.3);
    animation: highlightPulse 1.5s ease-in-out;
}

@keyframes highlightPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0 0 8px rgba(var(--color-gold-rgb), 0.5);
    }
    100% {
        transform: scale(1);
    }
}

.form-group textarea {
    resize: vertical;
}

.submit-btn {
    margin-top: 1.25rem;
    align-self: center;
    padding: 0.65rem 1.5rem;
    font-size: 0.85rem;
    min-width: 180px;
    border-radius: 30px;
}

.submit-btn .btn-icon {
    width: 16px;
    height: 16px;
}

/* --- Success Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 7, 13, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 3rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: var(--shadow-premium);
    transform: translateY(30px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.open .modal {
    transform: translateY(0);
}

.modal-icon-success {
    width: 80px;
    height: 80px;
    background: rgba(var(--color-emerald-rgb), 0.12);
    color: var(--color-emerald);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.modal-title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.modal-text {
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

/* --- Admin Bar (Simulated Dashboard) --- */
.admin-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 90;
    background: rgba(13, 19, 38, 0.95);
    border-top: 1px solid var(--border-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0;
    transition: var(--transition-smooth);
}

.admin-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.admin-summary {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-indicator {
    width: 10px;
    height: 10px;
    background-color: var(--color-emerald);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-emerald);
}

.admin-title {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.admin-panel-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    background: rgba(9, 13, 26, 0.98);
}

.admin-bar.expanded .admin-panel-content {
    max-height: 400px;
}

.admin-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-panel-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.admin-table-wrapper {
    max-height: 280px;
    overflow-y: auto;
    padding: 1rem 0 2rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    text-align: left;
}

.admin-table th, 
.admin-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.admin-table th {
    font-weight: 600;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.02);
}

.admin-table td {
    color: var(--text-secondary);
}

.admin-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* --- Footer --- */
.footer {
    padding: 40px 0 100px; /* Safe space for admin-bar */
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    margin-bottom: 0;
    color: var(--text-muted);
}

.credits {
    margin-bottom: 0;
    color: var(--text-muted);
}


/* --- Past Lectures Section --- */
.past-lectures {
    background-color: var(--bg-primary);
    border-top: 1px solid var(--border-color);
}

.filter-controls {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
    align-items: center;
}

.search-box-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
}

.search-box-wrapper .search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    display: flex;
    align-items: center;
}

.search-box-wrapper input {
    width: 100%;
    padding: 1rem 1rem 1rem 3.25rem;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.search-box-wrapper input:focus {
    outline: none;
    border-color: var(--color-emerald);
    background-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
}

.filter-btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.filter-btn {
    padding: 0.6rem 1.25rem;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.filter-btn:hover {
    color: var(--text-primary);
    border-color: var(--color-emerald);
    background-color: rgba(16, 185, 129, 0.05);
}

.filter-btn.active {
    background-color: var(--color-emerald);
    border-color: var(--color-emerald);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.past-lectures-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.past-lecture-card {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.past-lecture-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-emerald), var(--color-teal));
    opacity: 0;
    transition: var(--transition-smooth);
}

.past-lecture-card:hover {
    transform: translateY(-5px);
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: var(--shadow-premium);
    background-color: rgba(255, 255, 255, 0.04);
}

.past-lecture-card:hover::before {
    opacity: 1;
}

.past-lecture-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.past-lecture-location {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.location-pin {
    color: var(--color-emerald);
}

.past-lecture-region-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.region-sul {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--color-emerald);
}

.region-sudeste {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--color-gold);
}

.region-centro-oeste {
    background-color: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
}

.region-nordeste {
    background-color: rgba(236, 72, 153, 0.1);
    color: #f472b6;
}

.region-norte {
    background-color: rgba(168, 85, 247, 0.1);
    color: #c084fc;
}

.past-lecture-body {
    flex: 1;
}

.past-lecture-topic {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.no-results {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
    font-size: 1.1rem;
    border: 1px dashed var(--border-color);
    border-radius: 16px;
    background-color: rgba(255, 255, 255, 0.01);
}

/* --- About Education Impact --- */
.about-education-impact {
    margin-top: 5rem;
    padding-top: 4rem;
    border-top: 1px dashed var(--border-color);
    display: grid;
    grid-template-columns: 1.2fr 1.8fr;
    gap: 3rem;
    align-items: center;
}

.impact-text-wrapper {
    position: relative;
}

.impact-text {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
}

.impact-text strong {
    color: var(--text-primary);
    font-weight: 700;
}

.impact-logos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: center;
}

.impact-logo-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    transition: var(--transition-smooth);
    overflow: hidden;
}

.impact-logo-item:hover {
    transform: translateY(-5px);
    border-color: rgba(16, 185, 129, 0.3);
    background-color: rgba(255, 255, 255, 0.04);
    box-shadow: var(--shadow-premium);
}

.impact-logo {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    filter: brightness(0.9);
    transition: var(--transition-smooth);
}

.impact-logo-item:hover .impact-logo {
    filter: brightness(1);
    transform: scale(1.05);
}

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .recognition-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .recognition-img-grid {
        grid-template-columns: 1.2fr 0.8fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-education-impact {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        margin-top: 3.5rem;
        padding-top: 3rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        height: 70px;
    }
    
    .nav {
        display: none;
    }
    
    .nav-actions {
        display: none;
    }
    
    .mobile-nav-toggle {
        display: block;
    }
    
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .profile-image-container {
        width: 300px;
        height: 300px;
    }
    
    .profile-badge {
        left: -10px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .recognition-img-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

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

    .lectures-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .contact-card {
        padding: 1.5rem;
    }
    
    .admin-bar {
        font-size: 0.8rem;
    }
    
    .admin-title {
        max-width: 180px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .past-lectures-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-btn-group {
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    
    .filter-btn {
        flex-shrink: 0;
    }
    
    .impact-logos-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        max-width: 320px;
        margin: 0 auto;
    }
    
    .impact-logo-item {
        height: 100px;
    }
}
