/* ===== PRELOADER ===== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #121212;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

body:not(.loaded) .preloader {
    opacity: 1;
    visibility: visible;
}

body.loaded .preloader {
    opacity: 0;
    visibility: hidden;
}

.preloader.hide {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 70px;
    height: 70px;
    border: 5px solid transparent;
    border-top-color: #00ffcc;
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
    position: relative;
}

.loader:before, .loader:after {
    content: "";
    position: absolute;
    border: 5px solid transparent;
    border-radius: 50%;
}

.loader:before {
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    border-top-color: #0077ff;
    animation: spin 2s linear infinite;
}

.loader:after {
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border-top-color: #ff00ff;
    animation: spin 1s linear infinite;
}

.loader-text {
    margin-top: 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    color: #f0f0f0;
    letter-spacing: 2px;
    animation: blink 1s infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* ===== NO IMAGE FALLBACK ===== */
img {
    position: relative;
}

img::before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-secondary);
}

img::after {
    content: attr(alt) " não disponível";
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-secondary);
    color: var(--text-secondary);
    font-family: var(--font-main);
    font-size: 14px;
    text-align: center;
    padding: 10px;
}

/* ===== NOTIFICAÇÃO COOKIES ===== */
.cookie-notice {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px;
    z-index: 9999;
    transition: bottom 0.3s ease-in-out;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.cookie-notice.show {
    bottom: 0;
}

.cookie-content {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-text {
    color: var(--text-primary);
    font-size: 0.9rem;
    flex: 1;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.cookie-btn {
    padding: 8px 20px;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
}

.accept-btn {
    background: var(--neon-primary);
    color: var(--background-primary);
}

.accept-btn:hover {
    background: #00e6b8;
}

.decline-btn {
    background: transparent;
    border: 1px solid var(--text-secondary);
    color: var(--text-secondary);
}

.decline-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ==== CYBER TIMELINE ESSENTIAL STYLES ==== */
.cyber-timeline-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 50px;
    position: relative;
    background: rgba(26, 26, 26, 0.5);
    border-radius: 8px;
    padding: 30px 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 204, 0.2);
}

.cyber-timeline-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.cyber-title-text {
    font-size: 2rem;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 0 15px;
    z-index: 2;
    font-family: var(--font-main);
}

.cyber-title-scan {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(to bottom, transparent, var(--neon-primary), transparent);
    opacity: 0.3;
    z-index: 1;
    animation: scan-line 3s ease-in-out infinite;
}

.cyber-timeline {
    position: relative;
    padding: 30px 0;
    min-height: 500px;
}

.timeline-track {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 255, 204, 0.1), rgba(0, 255, 204, 0.3), rgba(0, 255, 204, 0.1));
    z-index: 1;
    overflow: hidden;
}

.timeline-track-pulse {
    display: none;
}

.cyber-timeline-node {
    position: relative;
    margin-bottom: 100px;
    z-index: 2;
}

.cyber-timeline-node:last-child {
    margin-bottom: 0;
}

.node-core {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--background-primary);
    border-radius: 50%;
    border: 2px solid var(--neon-primary);
    box-shadow: 0 0 15px var(--neon-primary);
    z-index: 3;
}

.node-pulse {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: transparent;
    border-radius: 50%;
    z-index: 2;
    animation: node-pulse 2s ease-in-out infinite;
}

.node-year {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1rem;
    font-weight: 600;
    color: var(--neon-primary);
    background: rgba(0, 0, 0, 0.7);
    padding: 5px 15px;
    border-radius: 20px;
    border: 1px solid rgba(0, 255, 204, 0.3);
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.2);
    text-align: center;
    font-family: var(--font-main);
}

.node-content {
    position: relative;
    width: 45%;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s ease;
}

.cyber-timeline-node.active .node-content {
    opacity: 1;
    transform: translateY(0);
}

.left-content {
    left: 0;
    margin-right: auto;
    text-align: right;
}

.right-content {
    right: 0;
    margin-left: auto;
    text-align: left;
}

.cyber-card {
    position: relative;
    background: var(--background-secondary);
    border-radius: var(--border-radius);
    padding: 20px;
    backdrop-filter: blur(5px);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: var(--transition-normal);
    border: 1px solid rgba(0, 255, 204, 0.1);
}

.cyber-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-large);
    border-color: rgba(0, 255, 204, 0.3);
    background: rgba(30, 30, 30, 0.9);
}

.cyber-card-header {
    position: relative;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 255, 204, 0.2);
    z-index: 1;
}

.cyber-card-header h4 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin: 0;
    font-family: var(--font-main);
}

.cyber-card-body p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
    font-family: var(--font-main);
}

.cyber-card-border {
    position: absolute;
    background: var(--neon-primary);
    transition: var(--transition-normal);
}

.cyber-card-border.top,
.cyber-card-border.bottom {
    height: 2px;
    width: 0;
}

.cyber-card-border.left,
.cyber-card-border.right {
    width: 2px;
    height: 0;
}

.cyber-card-border.top {
    top: 0;
    right: 0;
}

.cyber-card-border.right {
    top: 0;
    right: 0;
}

.cyber-card-border.bottom {
    bottom: 0;
    left: 0;
}

.cyber-card-border.left {
    bottom: 0;
    left: 0;
}

.cyber-card:hover .cyber-card-border.top,
.cyber-card:hover .cyber-card-border.bottom {
    width: 100%;
}

.cyber-card:hover .cyber-card-border.left,
.cyber-card:hover .cyber-card-border.right {
    height: 100%;
}

/* Animations */
@keyframes scan-line {
    0% {
        top: -10%;
    }
    100% {
        top: 110%;
    }
}

@keyframes track-pulse {
    0% {
        opacity: 0.3;
        top: -100%;
    }
    100% {
        opacity: 0;
        top: 100%;
    }
}

@keyframes node-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 255, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(0, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 255, 255, 0);
    }
}

/* Responsive */
@media screen and (max-width: 768px) {
    .cyber-timeline-node {
        margin-bottom: 70px;
    }

    .timeline-track {
        left: 20px;
    }

    .node-core, .node-pulse {
        left: 20px;
    }

    .node-year {
        left: 20px;
        top: -40px;
    }

    .node-content {
        width: 85%;
        margin-left: 50px !important;
        margin-right: 0 !important;
        text-align: left !important;
    }

    .left-content, .right-content {
        left: 0;
        right: 0;
    }
} 