/* Custom CSS for NR1 Event Website */

/* Global Styles */
:root {
    --primary-blue: #1e3a8a;
    --secondary-blue: #3b82f6;
    --accent-yellow: #fbbf24;
    --gradient-start: #1e40af;
    --gradient-end: #3b82f6;
    --text-dark: #1f2937;
    --text-light: #6b7280;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    background-attachment: fixed;
    background-size: cover;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../imagens/ilustracao.jpg') center/cover;
    opacity: 0.1;
    z-index: 0;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    padding: 2rem 0;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Info Items */
.info-item {
    display: flex;
    align-items: center;
    font-weight: 500;
}

.info-item i {
    font-size: 1.5rem;
    margin-right: 0.75rem;
}

/* Navbar Customization */
.navbar {
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar-brand img {
    height: 50px;
    width: auto;
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--secondary-blue) !important;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(45deg, var(--primary-blue), var(--secondary-blue));
    border: none;
    border-radius: 50px;
    font-weight: 600;
    padding: 0.75rem 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    background: linear-gradient(45deg, var(--secondary-blue), var(--primary-blue));
}

.btn-warning {
    background: linear-gradient(45deg, #f59e0b, var(--accent-yellow));
    border: none;
    border-radius: 50px;
    font-weight: 600;
    color: #1f2937 !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.4);
    background: linear-gradient(45deg, var(--accent-yellow), #f59e0b);
    color: #1f2937 !important;
}

/* Cards */
.card {
    border-radius: 15px;
    transition: all 0.3s ease;
    border: none;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
}

.card-body {
    padding: 2rem;
}

/* Section Spacing */
section {
    padding: 5rem 0;
}

/* Display Text */
.display-4, .display-5 {
    font-weight: 700;
    line-height: 1.2;
}

/* Background Sections */
.bg-light {
    background-color: #f8fafc !important;
}

/* Palestrantes Section */
#palestrantes .card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
}

#palestrantes .card-body {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

/* Apoiadores Section */
.apoiadores-logos img {
    max-height: 80px;
    width: auto;
    filter: grayscale(50%);
    transition: all 0.3s ease;
}

.apoiadores-logos img:hover {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* Footer */
footer {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%) !important;
}

footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--accent-yellow) !important;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-content {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .info-item {
        justify-content: center;
        margin-bottom: 1rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .btn-lg {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .hero-content h1 {
        margin-bottom: 2rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .info-item {
        font-size: 0.9rem;
    }
    
    .btn-lg {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Loading Animation */
.loading {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.loading.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: var(--secondary-blue);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.4);
}

/* Custom Utilities */
.text-gradient {
    background: linear-gradient(45deg, var(--primary-blue), var(--secondary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-custom {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.border-radius-custom {
    border-radius: 20px;
}

/* Hover Effects */
.hover-scale {
    transition: transform 0.3s ease;
}

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

/* Focus States for Accessibility */
.btn:focus,
.nav-link:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
    outline: none;
}

/* Custom Bootstrap Override */
.container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* ========================================
   RESPONSIVIDADE CUSTOMIZADA
======================================== */

/* Classes auxiliares para responsividade */
@media (max-width: 575.98px) {
    .display-6-sm {
        font-size: 2rem !important;
        line-height: 1.2;
    }
    
    .fs-6-sm {
        font-size: 1rem !important;
    }
    
    .fs-4-md {
        font-size: 1.1rem !important;
    }
}

@media (min-width: 576px) {
    .display-6-sm {
        font-size: 2.5rem !important;
    }
    
    .fs-6-sm {
        font-size: 1.125rem !important;
    }
    
    .fs-4-md {
        font-size: 1.25rem !important;
    }
}

/* Melhorias específicas para móveis */
@media (max-width: 767.98px) {
    .event-content h1 {
        font-size: 1.75rem !important;
        line-height: 1.3;
        margin-bottom: 1.5rem !important;
    }
    
    .event-info .info-item {
        font-size: 0.95rem;
        margin-bottom: 1rem !important;
    }
    
    .event-info .info-item i {
        font-size: 1.25rem;
    }
    
    .btn-lg {
        padding: 0.75rem 2rem !important;
        font-size: 1rem !important;
    }
    
    .card-body {
        padding: 1rem !important;
    }
    
    .palestrantes-card .row {
        text-align: center;
    }
    
    .palestrantes-card .col-sm-8 {
        margin-top: 1rem;
    }
}

/* Tablets */
@media (min-width: 768px) and (max-width: 991.98px) {
    .event-content h1 {
        font-size: 2.25rem !important;
    }
    
    .display-5 {
        font-size: 2.5rem !important;
    }
}

/* Desktop pequeno */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .container {
        max-width: 960px;
    }
}

/* Ajustes para imagens dos palestrantes */
@media (max-width: 575.98px) {
    .palestrantes-card img {
        width: 100px !important;
        height: 100px !important;
    }
}

/* Navbar responsiva */
@media (max-width: 575.98px) {
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-brand img {
        height: 25px !important;
        margin-right: 0.5rem;
    }
    
    .navbar-brand img:last-child {
        margin-right: 0;
    }
    
    .btn-sm {
        padding: 0.375rem 0.75rem;
        font-size: 0.875rem;
    }
}

/* Melhor alinhamento das logos no header */
.navbar-brand {
    margin-right: 0 !important;
}

.navbar-brand img {
    transition: all 0.3s ease;
}

.navbar-brand img:hover {
    transform: scale(1.05);
}

/* Footer responsivo */
@media (max-width: 767.98px) {
    footer .col-md-6 {
        text-align: center !important;
        margin-bottom: 1rem;
    }
    
    footer .col-md-6:last-child {
        margin-bottom: 0;
    }
}

/* Melhorias na seção de apoiadores */
@media (max-width: 575.98px) {
    .apoiadores img {
        max-height: 60px !important;
    }
}

/* Otimizações para landscape em móveis */
@media (max-width: 767.98px) and (orientation: landscape) {
    .event-content {
        padding: 1rem 0;
    }
    
    .event-content h1 {
        font-size: 1.5rem !important;
        margin-bottom: 1rem !important;
    }
    
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
}