body {
    font-family: 'Noticia Text', serif;
    margin: 0;
    padding: 0;
    color: #333;
    overflow-x: hidden;
    position: relative;
    z-index: 1;
    padding-bottom: 100px;
    animation: backgroundZoom 60s infinite alternate ease-in-out;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://image-tc.galaxy.tf/wijpeg-cuxp2v6i9gwb32nmzpqwazks3/palatul-parlamentului.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: -1;
    transform: scale(1.05);
    animation: backgroundZoomFilter 60s infinite alternate ease-in-out;
}

@keyframes backgroundZoomFilter {
    0% { transform: scale(1.05); }
    100% { transform: scale(1.15); }
}

header {
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

main {
    padding: 20px;
    max-width: 900px;
    margin: 20px auto;
    background-color: rgba(255, 255, 255, 0.45);
    border-radius: 15px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

section {
    padding: 30px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

section:last-child {
    border-bottom: none;
}

h1, h2 {
    color: #c79c00;
    text-align: center;
    margin-bottom: 20px;
}

h1 {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

p {
    line-height: 1.6;
    text-align: justify;
    margin-bottom: 10px;
}

footer {
    max-width: 900px;
    margin: 40px auto 20px auto;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.45);
    color: #fff;
    text-align: center;
    border-radius: 15px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

footer p {
    text-align: center;
}

.fade-in { animation: fadeIn 1.5s ease-out forwards; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.slide-in-left { animation: slideInLeft 1s ease-out forwards; }
@keyframes slideInLeft { from { transform: translateX(-100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

.slide-in-right { animation: slideInRight 1s ease-out forwards; }
@keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

section:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.animated-icon {
    font-size: 3em;
    text-align: center;
    margin-top: 20px;
    animation: pulse 2s infinite alternate;
}
@keyframes pulse { from { transform: scale(1); } to { transform: scale(1.1); } }

.cinematic-text-container {
    height: 30vh; display: flex; flex-direction: column; justify-content: center; align-items: center; overflow: hidden; background-color: rgba(0, 0, 0, 0.4); margin-top: -20px; position: relative; z-index: 2; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}
.cinematic-line {
    font-family: 'Georgia', serif; font-size: 2.5em; color: #fff; text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.6); opacity: 0; transform: translateY(20px); animation-fill-mode: forwards; text-align: center; margin: 5px 0;
}
.line1 { animation: cinematicReveal 2s ease-out 0.5s forwards; }
.line2 { animation: cinematicReveal 2s ease-out 1.5s forwards; }
.line3 { animation: cinematicReveal 2s ease-out 2.5s forwards; }
@keyframes cinematicReveal { 0% { opacity: 0; transform: translateY(20px); filter: blur(10px); } 50% { opacity: 1; filter: blur(0); } 100% { opacity: 1; transform: translateY(0); } }


.bottom-nav-buttons {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    gap: 15px;
    padding: 8px; 
    border-radius: 50px;
    background: rgba(40, 40, 40, 0.4); 
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Butonul în sine are fundal solid */
.nav-button {
    padding: 10px 25px; 
    color: #fff !important; 
    background-color: rgb(209, 155, 47) !important; /* Culoare solidă */
    border-radius: 30px; 
    text-decoration: none; 
    font-family: 'Noticia Text', serif; 
    font-weight: 700; 
    font-size: 16px; 
    border: none; /* Am scos bordura de pe buton */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); 
    transition: all 0.3s ease-in-out;
}
.nav-button:hover {
    background-color: #e6b400 !important; 
    color: #fff !important; 
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}
.nav-button:active {
    transform: scale(0.95);
    box-shadow: 0 0 15px #ffc800;
}

.scroll-top-button {
    position: fixed; bottom: 20px; right: 20px; width: 50px; height: 50px; 
    background-color: rgb(209, 155, 47);
    color: #fff; border-radius: 8px; text-align: center; line-height: 50px; font-size: 24px; font-weight: bold; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); text-decoration: none; z-index: 1001; transition: all 0.3s ease;
    animation: bounce 2s infinite;
}
.scroll-top-button span {
    display: inline-block; transition: transform 0.4s ease-in-out;
}
.scroll-top-button:hover {
    background-color: #e6b400 !important; 
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4); 
    animation-play-state: paused;
}
.scroll-top-button:hover span {
    transform: rotate(360deg);
}
.scroll-top-button:active {
    transform: scale(1.2) rotate(360deg);
    transition: transform 0.2s ease-in-out;
}

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