/* animations.css - Enhanced Animations Only */

/* ===== LOADING ANIMATIONS ===== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f1a5a 0%, #1E2A78 50%, #2a3a9c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-screen.loaded {
    opacity: 0;
    pointer-events: none;
}

.loading-background {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.floating-orb {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-gold), transparent);
    animation: floatOrb 8s ease-in-out infinite;
    opacity: 0.3;
}

.orb-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.orb-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes floatOrb {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-30px) rotate(120deg); }
    66% { transform: translateY(20px) rotate(240deg); }
}

.loading-content {
    text-align: center;
    color: white;
    z-index: 2;
}

.logo-container {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

.loading-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    animation: logoPulse 2s ease-in-out infinite;
}

.trademark {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent-gold);
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    animation: trademarkGlow 2s ease-in-out infinite;
}

.loading-circle {
    position: absolute;
    top: -15px;
    left: -15px;
    width: 150px;
    height: 150px;
    border: 3px solid transparent;
    border-top: 3px solid var(--accent-gold);
    border-radius: 50%;
    animation: circleRotate 1.5s linear infinite;
}

.circle-progress {
    position: absolute;
    top: -15px;
    left: -15px;
    width: 150px;
    height: 150px;
    border: 3px solid transparent;
    border-top: 3px solid white;
    border-radius: 50%;
    animation: circleRotate 1s linear infinite reverse;
    opacity: 0.7;
}

@keyframes logoPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes trademarkGlow {
    0%, 100% { box-shadow: 0 0 10px var(--accent-gold); }
    50% { box-shadow: 0 0 20px var(--accent-gold); }
}

@keyframes circleRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== GLOBAL BACKGROUND ANIMATIONS ===== */
.global-animation-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.animated-shape {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 161, 78, 0.1), transparent);
    animation: shapeFloat 20s ease-in-out infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    left: -150px;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    top: 50%;
    right: -100px;
    animation-delay: 5s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    bottom: -75px;
    left: 20%;
    animation-delay: 10s;
}

.shape-4 {
    width: 250px;
    height: 250px;
    bottom: 20%;
    right: 10%;
    animation-delay: 15s;
}

.color-wave {
    position: absolute;
    width: 100%;
    height: 200px;
    background: linear-gradient(90deg, 
        rgba(30, 42, 120, 0.05) 0%, 
        rgba(201, 161, 78, 0.03) 50%, 
        rgba(15, 122, 90, 0.05) 100%);
    animation: waveMove 15s ease-in-out infinite;
}

.wave-1 {
    top: 20%;
    transform: rotate(-2deg);
    animation-delay: 0s;
}

.wave-2 {
    bottom: 30%;
    transform: rotate(2deg);
    animation-delay: 7.5s;
}

@keyframes shapeFloat {
    0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
    33% { transform: translateY(-50px) rotate(120deg) scale(1.1); }
    66% { transform: translateY(50px) rotate(240deg) scale(0.9); }
}

@keyframes waveMove {
    0%, 100% { transform: translateX(-100%) rotate(-2deg); }
    50% { transform: translateX(100%) rotate(-2deg); }
}

/* ===== HERO ANIMATIONS ===== */
.visual-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-card {
    position: absolute;
    background: rgba(255,255,255,0.9);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: var(--shadow);
    animation: cardFloat 6s ease-in-out infinite;
}

.card-1 {
    top: 20%;
    left: -20px;
    animation-delay: 0s;
}

.card-2 {
    top: 50%;
    right: -20px;
    animation-delay: 2s;
}

.card-3 {
    bottom: 30%;
    left: 10%;
    animation-delay: 4s;
}

@keyframes cardFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-10px) rotate(2deg); }
    66% { transform: translateY(5px) rotate(-2deg); }
}

/* ===== CHART ANIMATIONS ===== */
.radial-chart {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: conic-gradient(var(--accent-gold) 0% 85%, var(--neutral-gray) 85% 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: chartGrow 1s ease-out;
}

.radial-chart::before {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
}

.chart-label {
    position: relative;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    color: var(--primary-navy);
}

.progress-chart {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.chart-bar {
    background: var(--neutral-gray);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    height: 30px;
}

.chart-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-navy), var(--accent-gold));
    animation: barFill 1.5s ease-out;
}

.chart-bar[data-value="90"]::before { width: 90%; }
.chart-bar[data-value="75"]::before { width: 75%; }
.chart-bar[data-value="88"]::before { width: 88%; }

.bar-label {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-weight: 600;
    z-index: 1;
    font-size: 0.9rem;
}

@keyframes chartGrow {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

@keyframes barFill {
    from { width: 0%; }
}

/* ===== NDP ALIGNMENT CHART ANIMATIONS ===== */
.ndp-chart {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.goal-bars {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.goal-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.bar-fill {
    height: 30px;
    background: linear-gradient(90deg, var(--primary-navy), var(--accent-gold));
    border-radius: 15px;
    animation: ndpBarFill 2s ease-out;
    min-width: 0%;
}

.goal-bar[data-progress="85"] .bar-fill { width: 85%; }
.goal-bar[data-progress="78"] .bar-fill { width: 78%; }
.goal-bar[data-progress="70"] .bar-fill { width: 70%; }
.goal-bar[data-progress="82"] .bar-fill { width: 82%; }

.goal-label {
    font-weight: 600;
    color: var(--neutral-dark);
    min-width: 180px;
}

@keyframes ndpBarFill {
    from { width: 0%; }
}

/* ===== CARD ANIMATIONS ===== */
.brand-card, .highlight-card, .framework-pillar {
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.brand-card::before, .highlight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(201, 161, 78, 0.1), transparent);
    transition: left 0.6s ease;
}

.brand-card:hover::before, .highlight-card:hover::before {
    left: 100%;
}

.brand-card:hover, .highlight-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

/* ===== SCROLL ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(201, 161, 78, 0.3); }
    50% { box-shadow: 0 0 30px rgba(201, 161, 78, 0.6); }
}

@keyframes bounce {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50% { transform: rotate(45deg) translateY(-10px); }
}

.animate-text {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }
.delay-3 { animation-delay: 0.9s; }

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ===== BUTTON ANIMATIONS ===== */
.btn-glow {
    animation: glow 2s ease-in-out infinite;
}

.pulse-cta {
    animation: pulse 2s infinite;
}

/* ===== RESPONSIVE ANIMATIONS ===== */
@media (max-width: 768px) {
    .loading-logo {
        width: 80px;
        height: 80px;
    }
    
    .loading-circle {
        width: 110px;
        height: 110px;
        top: -15px;
        left: -15px;
    }
    
    .floating-card {
        display: none;
    }
    
    .animated-shape {
        display: none;
    }
}