* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

:root {
    --color-one: #8599af;
    --color-one-lighter: #dbdbdb;
    --color-two: black;
    --color-three: #3b82f6;
    --color-four: #05214f;
}

body {
    font-family: 'Libre Baskerville', serif;
    line-height: 1.7;
    color: #f8fafc; 
    background-color: var(--color-one);
    background-image: 
        radial-gradient(ellipse at top right, rgba(0, 0, 0, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at bottom left, rgba(0, 0, 0, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 20% 50%, rgba(0, 0, 0, 0.15) 0%, transparent 40%);
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    min-height: 100vh; 
}

h1, h2, h3, nav a, .subtitle, .sponsor-label {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h2 { 
    color: #0f172a; 
    margin-bottom: 20px; 
    font-size: 1.8rem; 
    border-left: 5px solid var(--color-three); 
    padding-left: 15px; 
}

a {
    color: var(--color-four); 
    text-decoration: none; 
    transition: color 0.3s ease;
}

.container {
    max-width: 80%;
    margin: 0 auto;
    padding: 0 20px;
}

main {
    flex: 1; 
    padding: 40px 0;
}

section { 
    margin-bottom: 60px; 
}

header {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: flex-start; 
    justify-content: center;
    overflow: hidden;
    background: var(--color-two);
}

header .container { 
    padding: 0; 
}

.header-bg-image {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: url('images/ponte.jpg') no-repeat center 30% / cover fixed; 
    z-index: 1;
    opacity: 0.8;
}

.header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.7);
    margin-top: 15vh; 
}

header h1 { 
    font-size: 3.5rem; 
    line-height: 1.2;
    margin-bottom: 10px; 
    letter-spacing: 1px; 
}

header .subtitle { 
    font-size: 1.4rem;
    color: #cbd5e1;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 1px; 
}

.date-info {
    font-size: 1.2rem;
    margin-top: 5px;
    font-weight: 300;
}

header.header-small {
    height: 35vh; 
    min-height: 250px;
}

header.header-small .header-content {
    margin-top: 10vh; 
}

header.header-small h1 {
    font-size: 2.8rem; 
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0; 
    animation: bounce 2s infinite; 
}

.scroll-text {
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 8px;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.8);
}

.scroll-arrow {
    width: 16px; height: 16px;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(45deg); 
    box-shadow: 2px 2px 3px rgba(0,0,0,0.3);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

nav {
    background: rgba(255, 255, 255, 0.7); 
    -webkit-backdrop-filter: blur(12px); 
    backdrop-filter: blur(4px); 
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 18px 0;
    margin-bottom: 40px;
}

nav .container { 
    display: flex; 
    justify-content: center; 
    align-items: center;
}

.nav-brand-mobile {
    display: none;
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    color: var(--color-four);
    font-size: 1.2rem;
}

.hamburger {
    display: none; 
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001; 
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-four);
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.nav-links {
    display: flex;
    gap: 40px;
}

nav a {
    position: relative;
    text-decoration: none;
    color: #475569; 
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    padding: 5px 0;
    transition: color 0.3s ease;
}

nav a.active { 
    color: var(--color-three); 
}

nav a::after {
    content: '';
    position: absolute;
    width: 0; 
    height: 2px; 
    bottom: 0; left: 50%; 
    background-color: var(--color-three);
    transition: all 0.3s ease;
    transform: translateX(-50%); 
}

nav a.active::after { 
    width: 100%; 
}

.math-box {
    font-family: inherit; 
    background: #f8fafc;
    padding: 30px;
    border-radius: 12px;
    margin: 25px 0;
    text-align: center;
    border: 1px solid #e2e8f0;
    border-left: 4px solid var(--color-one);
}

table { 
    width: 100%; 
    border-collapse: collapse; 
    margin: 20px 0; 
}

th, td { 
    padding: 15px; 
    border: 1px solid #e2e8f0; 
    text-align: left; 
}

th { 
    background: #f1f5f9; 
    color: #0f172a; 
}

.speakers-list, .organizer-list {
    list-style-type: none; 
    padding-left: 0;       
    margin: 0;
}

.speakers-list li, .organizer-list li {
    margin-bottom: 12px;
    font-size: 1.05rem; 
}

.speakers-list em, .organizer-list em {
    font-family: 'Inter', sans-serif;
    font-style: normal; 
    color: var(--color-one-lighter);
    font-size: 0.8rem;
    text-transform: uppercase; 
    letter-spacing: 1.5px; 
    margin-left: 10px;
    font-weight: 600;
}

.venue-flex-container {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

.venue-flex-container > div {
    flex: 1;
    min-width: 0; 
}

.venue-flex-container h3 {
    font-family: 'Inter', sans-serif;
    color: #0f172a;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.transport-links {
    list-style-type: none;
    display: flex;
    gap: 15px;
    margin: 20px 0 40px 0;
    flex-wrap: wrap; 
}

.transport-links li a {
    text-decoration: none;
    background-color: var(--color-three);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.transport-details {
    scroll-margin-top: 40px; 
    margin-bottom: 50px;
}

.transport-step {
    display: flex;
    gap: 25px;
    align-items: center; 
    margin-top: 25px;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
}

.step-photo {
    width: 600px; 
    height: auto; 
    flex-shrink: 0;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.step-text {
    flex: 1; 
}

.step-text h4 {
    color: var(--color-one-lighter);
    margin-bottom: 10px;
}

.poster-download-container {
    margin-top: 30px;
    text-align: left; 
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--color-three); 
    color: white !important;
    padding: 12px 24px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-download svg {
    transition: transform 0.3s ease;
}

.dept-photo {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.dept-photo, .step-photo {
    cursor: zoom-in;
    transition: opacity 0.3s ease;
}

#image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    cursor: zoom-out;
}

#modal-img {
    max-width: 95%;
    max-height: 95vh;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    animation: zoom 0.3s ease;
}

@keyframes zoom {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

footer {
    background-color: white;
    padding: 40px 0;
    border-top: 5px solid var(--color-three);
    margin-top: 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; 
    gap: 30px;
}

.footer-left, .footer-center, .footer-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1; 
}

.footer-logo {
    height: 60px; 
    width: auto;
    max-width: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.sponsor-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #94a3b8;
    margin-bottom: 30px;
    font-weight: 600;
}

.copyright p {
    font-size: 0.85rem;
    color: #64748b;
    margin: 5px 0;
    text-align: center;
}

@media (hover: hover) {
    a:hover {
        color: var(--color-one); 
    }

    nav a:hover { 
        color: var(--color-three); 
    }

    nav a:hover::after { 
        width: 100%; 
    }

    .transport-links li a:hover {
        background-color: var(--color-four); 
    }

    .btn-download:hover {
        background-color: var(--color-four); 
        transform: translateY(-2px); 
        box-shadow: 0 6px 12px rgba(0,0,0,0.2);
    }

    .btn-download:hover svg {
        transform: translateY(2px);
    }

    .dept-photo:hover, .step-photo:hover {
        opacity: 0.7;
    }

    a:hover .footer-logo { 
        opacity: 0.6; 
    }

    .footer-logo:hover {
        opacity: 1 !important;
    }
}

@media (max-width: 768px) {
    body { 
        font-size: 16px; 
        background-attachment: scroll; 
    }
    
    p, li, td, th { font-size: 1.05rem; line-height: 1.6; }
    h2 { font-size: 1.5rem; margin-bottom: 15px; }
    h3 { font-size: 1.25rem; }
    
    main { padding: 25px 0; }
    section { margin-bottom: 40px; }
    .container { max-width: 95%; }
    
    header h1 { font-size: 2.2rem; }
    header .subtitle { font-size: 1.1rem; }
    
    .date-info {
        font-weight: 400; 
        text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.9), 0px 0px 12px rgba(0, 0, 0, 0.8);
    }
    
    header.header-small .header-content,
    .header-content {
        margin-top: 2vh;
        padding-top: 0;
        transform: none;
    }
    
    header:not(.header-small) .header-content {
        margin-top: 5vh; 
    }
    
    .header-bg-image {
        background-image: url('images/ponte-mobile.jpg') !important;
        background-attachment: scroll !important;
        background-position: center center !important;
        background-size: cover !important;
        opacity: 0.8;
    }
    
    nav .container {
        justify-content: space-between; 
        padding: 0 20px;
    }

    .nav-brand-mobile {
        display: block;
    }

    .hamburger {
        display: block;
    }
    
    .nav-links {
        position: absolute;
        top: 100%; 
        right: 20px;
        margin-top: 10px;
        width: 220px;
        height: auto;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 15px;
        padding: 20px 0;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
        border: 1px solid rgba(226, 232, 240, 0.8);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px) scale(0.95);
        transition: all 0.3s ease;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
    }

    .nav-links a {
        font-size: 1.1rem; 
        padding: 10px 0;
        width: 90%;  
        text-align: center;
        border-radius: 8px;
        transition: background-color 0.3s ease, color 0.3s ease;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .footer-content { flex-direction: column; text-align: center; gap: 30px; }
    .sponsor-label[style*="visibility: hidden"] { display: none; }
    .venue-flex-container { flex-direction: column; }
    .transport-step { flex-direction: column; text-align: center; }
    .step-photo { width: 100%; height: auto; }
    
    .speakers-list em, .organizer-list em {
        display: block;
        margin-left: 0;
        margin-top: 2px;
    }
    
    .transport-links {
        gap: 20px 15px;
    }

    .transport-links li a {
        display: inline-block;
    }
    
    nav a.active::after { 
        width: 35px; 
        height: 3px; 
        border-radius: 3px;
    }

    .nav-links a.active {
        background-color: rgba(59, 130, 246, 0.08);
    }
    
    .scroll-indicator {
        bottom: 85px; 
    }
}