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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.animation-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 1200px;
    min-height: 800px;
    position: relative;
    overflow: hidden;
}

.scene {
    padding: 40px 80px 140px;
    min-height: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.visual-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 20px 0;
}

.scene-title {
    font-size: 3em;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 40px;
    text-align: center;
    opacity: 0;
    animation: fadeInDown 0.8s ease forwards;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.narration {
    position: absolute;
    bottom: 160px;
    left: 60px;
    right: 60px;
    font-size: 1.1em;
    line-height: 1.6;
    color: #4a5568;
    text-align: center;
    opacity: 0;
    animation: fadeIn 1s ease 0.5s forwards;
    background: rgba(248, 250, 252, 0.9);
    padding: 15px 20px;
    border-radius: 8px;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Scene 1: Network Diagram */
.scene-1-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    width: 100%;
}

#network-diagram {
    opacity: 0;
    animation: fadeIn 0.8s ease 0.3s forwards;
}

.statistics-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.statistics {
    margin-top: 20px;
    display: flex;
    gap: 40px;
    justify-content: center;
}

.stat {
    background: #fee;
    padding: 20px 40px;
    border-radius: 12px;
    border: 2px solid #dc2626;
    opacity: 0;
    animation: scaleIn 0.6s ease 1s forwards;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.stat-label {
    display: block;
    font-size: 0.9em;
    color: #991b1b;
    margin-bottom: 8px;
}

.stat-value {
    display: block;
    font-size: 2.5em;
    font-weight: 700;
    color: #dc2626;
}

/* Scene 2: Fraud Problem */
.split-screen {
    display: flex;
    width: 100%;
    gap: 60px;
    margin-top: 40px;
}

.left-panel, .right-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.fraudster, .victim {
    text-align: center;
    padding: 30px;
    border-radius: 16px;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.5s forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fraudster {
    background: #1f2937;
    color: white;
}

.victim {
    background: #f0f9ff;
    border: 3px solid #3b82f6;
}

.icon {
    font-size: 5em;
    margin-bottom: 20px;
}

.label {
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 15px;
}

.action {
    color: #ef4444;
    font-weight: 600;
    margin-bottom: 20px;
}

.fake-screen {
    background: #374151;
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
}

.caller-id {
    font-size: 1.8em;
    font-weight: 600;
    color: #60a5fa;
    margin-bottom: 8px;
}

.caller-name {
    font-size: 1.2em;
    color: #93c5fd;
}

.trust {
    color: #22c55e;
    font-size: 1.3em;
    font-weight: 600;
    margin-top: 20px;
}

.money-flow {
    margin-top: 30px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3em;
    animation: moneyFloat 2s ease-in-out infinite;
}

@keyframes moneyFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* Scene 3: Timeline */
.timeline-container {
    width: 100%;
    margin-top: 40px;
}

/* Scene 5: CDB */
.cdb-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 60px;
}

.cdb-building {
    background: #6b7280;
    padding: 60px;
    border-radius: 16px;
    text-align: center;
    position: relative;
    opacity: 0;
    animation: fadeInScale 1s ease 0.5s forwards;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.building-label {
    font-size: 2em;
    font-weight: 700;
    color: white;
    margin-bottom: 30px;
}

.cost-tag, .timeline-tag {
    background: #dc2626;
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.5em;
    font-weight: 600;
    margin: 15px 0;
    display: inline-block;
}

.rejection-stamps {
    margin-top: 40px;
    opacity: 0;
    animation: stampIn 0.6s ease 1.5s forwards;
}

@keyframes stampIn {
    from {
        opacity: 0;
        transform: rotate(-10deg) scale(0.5);
    }
    to {
        opacity: 1;
        transform: rotate(-5deg) scale(1);
    }
}

.stamp {
    font-size: 3em;
    font-weight: 900;
    color: #ef4444;
    border: 6px solid #ef4444;
    padding: 20px 40px;
    transform: rotate(-15deg);
    display: inline-block;
    margin-bottom: 20px;
}

.reason {
    background: #fef2f2;
    color: #991b1b;
    padding: 12px 24px;
    border-radius: 8px;
    margin: 8px;
    display: inline-block;
    font-weight: 600;
}

/* Scene 6: Capabilities */
.capabilities-list {
    margin-top: 60px;
    width: 100%;
    max-width: 600px;
}

.capability {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    margin: 20px 0;
    border-radius: 12px;
    font-size: 1.4em;
    font-weight: 600;
    opacity: 0;
}

.capability.missing {
    background: #fef2f2;
    border: 3px solid #ef4444;
    color: #991b1b;
}

.capability .icon {
    font-size: 1.5em;
}

.capability[data-delay="0"] {
    animation: slideInLeft 0.6s ease 0.5s forwards;
}
.capability[data-delay="200"] {
    animation: slideInLeft 0.6s ease 0.7s forwards;
}
.capability[data-delay="400"] {
    animation: slideInLeft 0.6s ease 0.9s forwards;
}
.capability[data-delay="600"] {
    animation: slideInLeft 0.6s ease 1.1s forwards;
}
.capability[data-delay="800"] {
    animation: slideInLeft 0.6s ease 1.3s forwards;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scene 7: Challenge */
.challenge-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 60px;
}

.question-mark {
    font-size: 12em;
    font-weight: 700;
    color: #3b82f6;
    opacity: 0;
    animation: popIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.5s forwards;
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.what-if {
    font-size: 2.5em;
    font-weight: 600;
    color: #1e40af;
    margin-top: 40px;
    opacity: 0;
    animation: fadeIn 1s ease 1.5s forwards;
}

/* Scene 8: PSTN2 Logo */
.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 60px;
}

.pstn2-logo {
    font-size: 8em;
    font-weight: 900;
    background: linear-gradient(135deg, #3b82f6 0%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    animation: logoAppear 1.5s ease 0.5s forwards;
}

@keyframes logoAppear {
    0% {
        opacity: 0;
        transform: scale(0.5) rotate(-10deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.tagline {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.tag {
    background: linear-gradient(135deg, #3b82f6 0%, #10b981 100%);
    color: white;
    padding: 15px 35px;
    border-radius: 30px;
    font-size: 1.3em;
    font-weight: 600;
    opacity: 0;
    animation: tagSlideIn 0.6s ease forwards;
}

.tag:nth-child(1) {
    animation-delay: 2s;
}
.tag:nth-child(2) {
    animation-delay: 2.2s;
}
.tag:nth-child(3) {
    animation-delay: 2.4s;
}

@keyframes tagSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Controls */
.controls {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    align-items: center;
    z-index: 100;
}

.control-btn {
    padding: 12px 30px;
    font-size: 1.1em;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    background: #e5e7eb;
    color: #374151;
    cursor: pointer;
    transition: all 0.3s ease;
}

.control-btn:hover {
    background: #d1d5db;
    transform: translateY(-2px);
}

.control-btn.primary {
    background: linear-gradient(135deg, #3b82f6 0%, #10b981 100%);
    color: white;
}

.control-btn.primary:hover {
    opacity: 0.9;
}

.control-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.control-btn.audio-off {
    background: #fee;
    color: #dc2626;
    border: 2px solid #dc2626;
}

.scene-indicator {
    font-size: 1.2em;
    font-weight: 600;
    color: #4b5563;
    padding: 0 20px;
}

/* Progress Bar */
.progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: #e5e7eb;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #10b981 100%);
    transition: width 0.5s ease;
    width: 12.5%;
}

/* Responsive */
@media (max-width: 768px) {
    .scene {
        padding: 40px 30px 140px;
    }

    .scene-title {
        font-size: 2em;
    }

    .narration {
        font-size: 1em;
        bottom: 160px;
        left: 30px;
        right: 30px;
    }

    .scene-1-layout {
        flex-direction: column;
        gap: 20px;
    }

    #network-diagram {
        width: 100%;
        max-width: 400px;
    }

    .split-screen {
        flex-direction: column;
        gap: 30px;
    }

    .pstn2-logo {
        font-size: 4em;
    }

    .tagline {
        flex-direction: column;
        gap: 15px;
    }
}

/* Animation-specific styles */
.content-placeholder {
    font-size: 8em;
    text-align: center;
    margin: 40px 0;
    opacity: 0;
    animation: fadeIn 0.8s ease 0.5s forwards;
}

.scene-description {
    font-size: 1.3em;
    font-weight: 600;
    color: #1f2937;
    text-align: center;
    max-width: 600px;
    margin: 20px auto;
    opacity: 0;
    animation: fadeIn 0.8s ease 1s forwards;
}

.scene-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    min-height: 300px;
}
