html {
    scroll-behavior: smooth;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: black;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

header {
    width: 100%;
    padding: 20px;
    background: transparent;
    text-align: center;
    margin-top: 15px;
    margin-bottom: 15px;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

nav a {
    text-decoration: none;
    color: black;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 15px;
    display: inline-block;
    transition: transform 0.25s ease, color 0.25s ease;
    font-size: 0.9rem;
    transform-origin: center;
}

nav a:hover {
    transform: scale(1.08);
}

h1 {
    font-size: 5rem; 
    text-transform: uppercase;
    letter-spacing: 5px;
    text-shadow: 2px 2px 20px black;
    margin-bottom: 10px;
    background: transparent;
}

p.subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    text-shadow: 1px 1px 10px black;
}

footer {
    text-align: center;
    padding: 20px;
    font-size: 0.8rem;
    opacity: 0.7;
    background: transparent;
    margin-top: auto; 
    margin-bottom: 15px;
} 

#overlay {
    width: 100vw;
    height: 100vh;
    position: fixed; 
    top: 0;
    left: 0;
    z-index: 999;
    background: white;
    animation: loader 1s forwards ease-in-out;
    pointer-events: none; 
}

@keyframes loader {
    from { opacity: 1; } 
    to { opacity: 0; display: none; }
}

#title {
    width: 100%;
    height: 280px;
    background: no-repeat center;
    background-size: 100%;
    background-position: 0px -250px;
}

#title > div {
    width: 100%;
    height: 280px;
    backdrop-filter: blur(5px);
    color: white;
    text-align: center;
    text-transform: uppercase;
    display: flex;
    justify-content: center;
    align-items: center;
    user-select: none;
    flex-direction: column;
}

#title > div > h3 {
    text-shadow: 0px 0px 10px black;
}

#title > div > h1 {
    text-shadow: 0px 0px 20px black;
}

.timeline-container {
    width: 90%;
    max-width: 1000px;
    margin: 40px auto;
    margin-bottom: 60px;
    position: relative;
}

.timeline {
    display: flex;
    justify-content: space-between;
    align-items: flex-end; 
    position: relative;
    height: 120px;
}

.timeline::before {
    content: '';
    position: absolute;
    bottom: 7px; 
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent 0%, #2c3e50 10%, #2c3e50 90%, transparent 100%);
    z-index: 1;
    border-radius: 2px;
}

.timeline-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    position: relative;
    z-index: 2;
}

.timeline-content {
    background: white;
    color: #2c3e50;
    border: 2px solid #2c3e50;
    padding: 10px 25px; 
    min-width: 120px; 
    white-space: nowrap;
    text-align: center;
    border-radius: 25px;
    text-transform: uppercase;
    font-weight: 900;
    font-size: 1.1rem;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.timeline-stem {
    width: 3px;
    height: 40px; 
    background: #2c3e50;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: bottom; 
}

.timeline-dot {
    width: 18px;
    height: 18px;
    background: #fff;
    border: 4px solid #2c3e50;
    border-radius: 50%;
    box-shadow: 0 0 0 5px white; 
    transition: all 0.3s;
}

.timeline-node:hover .timeline-dot {
    border-color: #d32f2f;
    background: #d32f2f;
    box-shadow: 0 0 15px rgba(211, 47, 47, 0.6), 0 0 0 5px white;
}

.timeline-node:hover .timeline-content {
    transform: translateY(-20px) scale(1.05);
    background: #d32f2f;
    color: white;
    border-color: #d32f2f;
    box-shadow: 0 8px 20px rgba(211, 47, 47, 0.4);
}

.timeline-node:hover .timeline-stem {
    transform: scaleY(1.5); 
    background: #d32f2f;
}

.content-wrapper {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto 50px auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.content-box {
    padding: 40px 30px;
    border-left: 6px solid #2c3e50;
    border-radius: 0 8px 8px 0;
    scroll-margin-top: 40px; 
    transition: border-color 0.3s;
}

.content-box:hover {
    border-left-color: #d32f2f;
}

.content-box h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 10px;
}

.content-box p {
    font-size: 1.2rem;
    line-height: 1.7;
    color: #444;
}

.photo {
    width: 430px;
    margin: 10px;
    border-radius: 8px;
}

iframe {
    width: 530px;
    height: 300px;
    border-radius: 8px;
    margin: 10px;
}
.gallery-grid {
    width: 100%;
    margin-top: 25px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 5px 14px rgba(0,0,0,0.15);
    transition: box-shadow 0.35s;
}

.gallery-item:hover {
    box-shadow: 0 12px 24px rgba(0,0,0,0.22);
}

.gallery-item img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block; 
    transition: transform 0.35s; 
}

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


.gallery-item::after {
    content: attr(data-alt); 
    position: absolute;
    inset: 0;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.55); 
    color: white; 
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 15px;
    font-weight: bold;
    font-size: 1.1rem;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none; 
}
.gallery-item:hover::after {
    opacity: 1;
}

#galleryViewer {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.94);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

#galleryViewer.active {
    opacity: 1;
    visibility: visible;
}

#galleryViewer img {
    max-width: 85%;
    max-height: 85%;
    border-radius: 10px;
}

#galleryViewer span {
    position: absolute;
    top: 25px;
    right: 45px;
    font-size: 60px;
    color: white;
    cursor: pointer;
    user-select: none;
}
