/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #fff;
    overflow-x: hidden;
    perspective: 1000px;
    min-height: 100vh;
    background: #00aa9e;
}

/* Efeitos de Fundo */
.particles {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -2;
}

.gradient-bg {
    position: fixed;
    width: 200vw;
    height: 200vh;
    background: radial-gradient(circle at center, 
              rgba(0,78,124,0.2) 0%, 
              rgba(0,0,0,0.8) 70%);
    top: -50vh;
    left: -50vw;
    z-index: -1;
    transition: transform 0.5s ease-out;
}

/* Cabeçalho com Logo */
header {
    position: relative;
    z-index: 10;
    padding: 2rem 0;
    text-align: center;
}

.header-logo {
    height: 60px;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.header-logo:hover {
    transform: scale(1.05);
}

header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(90deg, #00aa9e, #004e7c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Linha do Tempo 3D */
.timeline-3d {
    position: relative;
    width: 100%;
    height: 50vh;
    margin: 2rem auto 5rem;
    transform-style: preserve-3d;
    transition: transform 1s cubic-bezier(0.17, 0.67, 0.21, 0.99);
}

.timeline-card {
    position: absolute;
    width: 280px;
    height: 480px;
    left: 50%;
    top: 50%;
    margin-left: -140px;
    margin-top: -190px;
    transform-style: preserve-3d;
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s;
}

.timeline-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.card-face.front {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0,78,124,0.9) 0%, rgba(0,170,158,0.7) 100%);
}

.year-display {
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    text-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.card-face.back {
    background: #fff;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
}

.card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-content h4 {
    color: #004e7c;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-align: center;
}

.card-content p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    text-align: justify;
    flex-grow: 1;
}

.card-image {
    height: 140px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: transform 0.5s;
    border: 1px solid #eee;
}

.card-image:hover {
    transform: scale(1.03);
}

.card-footer {
    padding: 12px;
    text-align: center;
    color: white;
    background-color: #004e7c;
    font-size: 0.9rem;
}

/* Controle Holográfico */
.holographic-controls {
    position: fixed;
    bottom: 3vh;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}

.control-ring {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50px;
    padding: 10px 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.holographic-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0,78,124,0.7);
    border: 2px solid rgba(0,170,158,0.5);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 10px;
}

.holographic-btn:hover {
    background: rgba(0,170,158,0.7);
    transform: scale(1.1);
}

#current-year {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    min-width: 90px;
    text-align: center;
    color: white;
    text-shadow: 0 0 10px rgba(0,170,158,0.7);
}

.timeline-progress-3d {
    width: 280px;
    height: 5px;
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
    margin-top: 15px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    transition: width 0.5s ease;
    background: linear-gradient(90deg, #00aa9e, #004e7c);
}

/* Modal Holográfico */
.holo-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 100;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.holo-content {
    position: relative;
    max-width: 85%;
    max-height: 85%;
    animation: holoGlow 3s infinite alternate;
}

@keyframes holoGlow {
    0% { box-shadow: 0 0 30px rgba(0,170,158,0.5); }
    100% { box-shadow: 0 0 50px rgba(0,78,124,0.8); }
}

.holo-image {
    max-width: 100%;
    max-height: 70vh;
    border: 3px solid white;
    border-radius: 10px;
}

.holo-caption {
    text-align: center;
    margin-top: 15px;
    font-size: 1.3rem;
    color: white;
    text-shadow: 0 0 10px rgba(0,170,158, 0.7);
}

.holo-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s;
}

.holo-close:hover {
    color: #00aa9e;
}

/* Assinatura Digital */
.digital-signature {
    position: fixed;
    bottom: 1rem;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 5;
}

.tech-lines {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.tech-lines .line {
    width: 40px;
    height: 3px;
    margin: 0 5px;
    border-radius: 3px;
}

/* Responsividade */
@media (max-width: 768px) {
    header {
        padding: 1.5rem 0;
    }
    
    .header-logo {
        height: 60px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    header p {
        font-size: 1rem;
    }
    
    .timeline-3d {
        height: 50vh;
        margin-bottom: 4rem;
    }
    
    .timeline-card {
        width: 240px;
        height: 320px;
        margin-left: -120px;
        margin-top: -160px;
    }
    
    .year-display {
        font-size: 3.5rem;
    }
    
    .card-content {
        padding: 1rem;
    }
    
    .card-content h4 {
        font-size: 1.2rem;
    }
    
    .card-image {
        height: 100px;
    }
    
    .control-ring {
        padding: 8px 15px;
    }
    
    .holographic-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    #current-year {
        font-size: 1.4rem;
        min-width: 70px;
    }
    
    .timeline-progress-3d {
        width: 220px;
    }
}

@media (max-width: 480px) {
    .header-logo {
        height: 50px;
    }
    
    header h1 {
        font-size: 1.6rem;
    }
    
    .timeline-card {
        width: 200px;
        height: 280px;
        margin-left: -100px;
        margin-top: -140px;
    }
    
    .year-display {
        font-size: 3rem;
    }
    
    .card-content h4 {
        font-size: 1.1rem;
    }
    
    .card-content p {
        font-size: 0.85rem;
    }
}